diff --git a/customer_image_and_tags_in_pos/README.rst b/customer_image_and_tags_in_pos/README.rst index 32071a13e..71f078c73 100644 --- a/customer_image_and_tags_in_pos/README.rst +++ b/customer_image_and_tags_in_pos/README.rst @@ -1,5 +1,5 @@ .. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg - :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :target: http:s//www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 Customer Image And Tags In POS @@ -18,13 +18,12 @@ License ------- General Public License, Version 3 (LGPL v3). -(http://www.gnu.org/licenses/lgpl-3.0-standalone.html) +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) Credits ------- -Developers: Version 16 - Fathima Mazlin AM @cybrosys +Developer: (V16) Fathima Mazlin AM, Contact: odoo@cybrosys.com -Contact: odoo@cybrosys.com Contacts -------- diff --git a/customer_image_and_tags_in_pos/__manifest__.py b/customer_image_and_tags_in_pos/__manifest__.py index 80afa7df6..750779790 100644 --- a/customer_image_and_tags_in_pos/__manifest__.py +++ b/customer_image_and_tags_in_pos/__manifest__.py @@ -21,16 +21,15 @@ ############################################################################### { 'name': 'Customer Image And Tags In POS', - 'version': '16.0.1.0.0', + 'version': '16.0.1.0.1', + 'category': 'Point of Sale', 'summary': 'Images and tags in pos customer session', 'description': 'Can see the image and tags of customer in ' 'customer selection page while choosing' ' the customer in pos', - 'category': 'Point of Sale', 'author': 'Cybrosys Techno Solutions', 'company': 'Cybrosys Techno Solutions', 'maintainer': 'Cybrosys Techno Solutions', - 'images': ['static/description/banner.png'], 'website': 'https://www.cybrosys.com', 'depends': ['base', 'point_of_sale'], 'assets': { @@ -40,8 +39,10 @@ 'customer_image_and_tags_in_pos/static/src/xml/PartnerLine.xml', ], }, - 'application': False, + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', 'installable': True, 'auto_install': False, - 'license': 'LGPL-3', + 'application': False, + } diff --git a/customer_image_and_tags_in_pos/doc/RELEASE_NOTES.md b/customer_image_and_tags_in_pos/doc/RELEASE_NOTES.md index 74dd9d323..cc8b28905 100644 --- a/customer_image_and_tags_in_pos/doc/RELEASE_NOTES.md +++ b/customer_image_and_tags_in_pos/doc/RELEASE_NOTES.md @@ -1,7 +1,11 @@ ## Module -#### 15.07.2023 +#### 11.07.2023 #### Version 16.0.1.0.0 #### ADD - Initial commit for Customer Image And Tags In POS + +#### 24.08.2023 +#### Version 16.0.1.0.1 +#### DEBUG diff --git a/customer_image_and_tags_in_pos/models/pos_session.py b/customer_image_and_tags_in_pos/models/pos_session.py index 3bc284e67..1fe0437d1 100644 --- a/customer_image_and_tags_in_pos/models/pos_session.py +++ b/customer_image_and_tags_in_pos/models/pos_session.py @@ -27,19 +27,51 @@ class PosSession(models.Model): _inherit = 'pos.session' def _pos_ui_models_to_load(self): - """For load module to POS""" - result = super()._pos_ui_models_to_load() - result += [ + models_to_load = [ + 'res.company', 'res.partner.category', + 'decimal.precision', + 'uom.uom', + 'res.country.state', + 'res.country', + 'res.lang', + 'account.tax', + 'pos.session', + 'pos.config', + 'pos.bill', + 'res.partner', + 'stock.picking.type', + 'res.users', + 'product.pricelist', + 'res.currency', + 'pos.category', + 'product.product', + 'product.packaging', + 'account.cash.rounding', + 'pos.payment.method', + 'account.fiscal.position', ] - return result + return models_to_load def _loader_params_res_partner_category(self): """For load res partner category fields""" return { - 'search_params': {'fields': ['name', 'partner_ids']}} + 'search_params': {'fields': ['id', 'name']}} def _get_pos_ui_res_partner_category(self, params): """For getting parameters of res partner category model""" return self.env['res.partner.category'].search_read( **params['search_params']) + + def _loader_params_res_partner(self): + return { + 'search_params': { + 'domain': self._get_partners_domain(), + 'fields': [ + 'name', 'street', 'city', 'state_id', 'country_id', + 'vat', 'lang', 'phone', 'zip', 'mobile', 'email', + 'category_id', 'barcode', 'write_date', + 'property_account_position_id', 'property_product_pricelist', 'parent_name' + ], + }, + } diff --git a/customer_image_and_tags_in_pos/static/description/assets/modules/3.png b/customer_image_and_tags_in_pos/static/description/assets/modules/3.png new file mode 100644 index 000000000..89ff6c635 Binary files /dev/null and b/customer_image_and_tags_in_pos/static/description/assets/modules/3.png differ diff --git a/customer_image_and_tags_in_pos/static/description/index.html b/customer_image_and_tags_in_pos/static/description/index.html index a1916c8e0..dca306a15 100644 --- a/customer_image_and_tags_in_pos/static/description/index.html +++ b/customer_image_and_tags_in_pos/static/description/index.html @@ -1,174 +1,163 @@ -
- -
- -
-
- Community -
-
- Enterprise -
-
- Odoo.sh -
-
+
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Customer Image And Tags In POS

+

Images and tags in customer selection session

+ + +
- +
- -

- Customer Image And Tags In POS

-

- Images and tags in customer selection session

- -
-
-
- -
-

- Explore This - Module

+
+
+ +
+

Explore This + Module

-
-
- -
-

- Overview -

+
+
+ +
+

Overview +

-
-
- This module helps you to see images and tags in customer selection page +
+
+ This module helps you to see images and tags in customer selection page in POS. -
+
-
-
- -
-

- Features -

+
+
+ +
+

Features +

-
-
-
- - Community and Enterprise Support. -
-
- - Customer Images And Customer Tags in Pos Session -
+
+
+
+ + Community & + Enterprise Support.
- - - -
-
- -
-

- Screenshots -

+
+ + Customer Images And Customer Tags in Pos Session
-
-
- -
-

- Image And Tags In POS Session.

-

- We can see customer image and customer tags in pos session +

+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

Image And Tags In POS Session. +

+

Go to Inventory -> Reports + We can see customer image and customer tags in pos session while clicking the button "Customer".

- -
-
+
- +
+
+
- - - - - - - - +
@@ -10,15 +12,15 @@ const PosPartnerLine = (PartnerLine) => get highlight() { var self = this; var tags = [] + var customer_tag = self.props.partner.category_id this.env.pos.customer_tag.forEach(function(items){ - var partner = items.partner_ids - partner.forEach(function(item){ - if (self.props.partner.id == item){ - tags.push(items.name) - } - }); + customer_tag.forEach(function(item){ + if(item == items["id"]){ + tags.push(items.name) + } + }); }); - this.props.partner['tags'] = tags + this.props.tags = tags } } -Registries.Component.extend(PartnerLine, PosPartnerLine); \ No newline at end of file +Registries.Component.extend(PartnerLine, PosPartnerLine); diff --git a/customer_image_and_tags_in_pos/static/src/js/customer_tag.js b/customer_image_and_tags_in_pos/static/src/js/customer_tag.js index dbe4d786e..407baddf0 100644 --- a/customer_image_and_tags_in_pos/static/src/js/customer_tag.js +++ b/customer_image_and_tags_in_pos/static/src/js/customer_tag.js @@ -4,11 +4,11 @@ import Registries from 'point_of_sale.Registries'; const CustomerTag = (PosGlobalState) => class CustomerTag extends PosGlobalState { /** - load customer tag data to PosGlobalState + Load customer tag data to PosGlobalState **/ async _processData(loadedData) { await super._processData(loadedData); this.customer_tag = loadedData['res.partner.category']; } } -Registries.Model.extend(PosGlobalState, CustomerTag); \ No newline at end of file +Registries.Model.extend(PosGlobalState, CustomerTag); diff --git a/customer_image_and_tags_in_pos/static/src/xml/PartnerLine.xml b/customer_image_and_tags_in_pos/static/src/xml/PartnerLine.xml index 659e0b7b0..b1491a643 100644 --- a/customer_image_and_tags_in_pos/static/src/xml/PartnerLine.xml +++ b/customer_image_and_tags_in_pos/static/src/xml/PartnerLine.xml @@ -27,7 +27,7 @@ position="after">
- +