diff --git a/oca_dependencies.txt b/oca_dependencies.txt index ca3c726ba2..b0f1193f7d 100644 --- a/oca_dependencies.txt +++ b/oca_dependencies.txt @@ -1 +1 @@ -# See https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#oca_dependencies-txt +partner-contact diff --git a/pos_partner_firstname/README.rst b/pos_partner_firstname/README.rst index 090a8b6cd5..f935eaffcc 100644 --- a/pos_partner_firstname/README.rst +++ b/pos_partner_firstname/README.rst @@ -14,13 +14,13 @@ POS Partner Firstname :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github - :target: https://github.com/OCA/pos/tree/12.0/pos_partner_firstname + :target: https://github.com/OCA/pos/tree/14.0/pos_partner_firstname :alt: OCA/pos .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_partner_firstname + :target: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_partner_firstname :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/184/12.0 + :target: https://runbot.odoo-community.org/runbot/184/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -33,13 +33,25 @@ allowing to view and edit them in the given customer view. .. contents:: :local: +Known issues / Roadmap +====================== + +Some features we would need to cover in the future: + +* When the field ``name`` is set to be readonly the module must prevent the field to have red border and the possibility to have the cursor, and change the background color of the name field could be user friendly. +* In back office, the name *OR* the surname is mandatory. In front office, the name *AND* the surname is mandatory. Should be great to have a similar behaviour. +* In back office, default is "company". In front office, default is "individual". The behaviour should however depend by *B2B* or *B2C* setting in order to set the right default. +* In individual mode, in back office, it is possible to select the parent company. In individual mode, in front office, it is not possible. However we would also have to say that odoo doesn't permit the parent company selection. + +The ticket referencing the above information can be read at https://github.com/OCA/pos/pull/775 + Bug Tracker =========== Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -56,6 +68,7 @@ Contributors * Roberto Fichera * Lorenzo Battistini (https://takobi.online) +* Dhara Solanki Maintainers ~~~~~~~~~~~ @@ -78,6 +91,6 @@ Current `maintainer `__: |maintainer-robyf70| -This module is part of the `OCA/pos `_ project on GitHub. +This module is part of the `OCA/pos `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/pos_partner_firstname/__manifest__.py b/pos_partner_firstname/__manifest__.py index b9b89c2eb3..5d98984a08 100644 --- a/pos_partner_firstname/__manifest__.py +++ b/pos_partner_firstname/__manifest__.py @@ -1,10 +1,11 @@ +# Copyright 2021 initOS Gmbh # Copyright 2019 Roberto Fichera # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "POS Partner Firstname", "summary": "POS Support of partner firstname", - "version": "12.0.1.1.1", + "version": "14.0.1.0.0", "development_status": "Beta", "category": "Point Of Sale", "website": "https://github.com/OCA/pos", diff --git a/pos_partner_firstname/models/res_partner.py b/pos_partner_firstname/models/res_partner.py index e21f9e43f7..9bdd55bb31 100644 --- a/pos_partner_firstname/models/res_partner.py +++ b/pos_partner_firstname/models/res_partner.py @@ -7,12 +7,6 @@ class ResPartner(models.Model): _inherit = "res.partner" - @api.model - def create_from_ui(self, partner): - if "is_company" in partner: - partner["is_company"] = partner["is_company"] == "true" - return super(ResPartner, self).create_from_ui(partner) - @api.model def get_names_order(self): """Allow POS frontend to retrieve 'partner_names_order'""" diff --git a/pos_partner_firstname/readme/CONTRIBUTORS.rst b/pos_partner_firstname/readme/CONTRIBUTORS.rst index d8df14f05e..90462160ec 100644 --- a/pos_partner_firstname/readme/CONTRIBUTORS.rst +++ b/pos_partner_firstname/readme/CONTRIBUTORS.rst @@ -1,2 +1,3 @@ * Roberto Fichera * Lorenzo Battistini (https://takobi.online) +* Dhara Solanki diff --git a/pos_partner_firstname/readme/ROADMAP.rst b/pos_partner_firstname/readme/ROADMAP.rst new file mode 100644 index 0000000000..9497837000 --- /dev/null +++ b/pos_partner_firstname/readme/ROADMAP.rst @@ -0,0 +1,8 @@ +Some features we would need to cover in the future: + +* When the field ``name`` is set to be readonly the module must prevent the field to have red border and the possibility to have the cursor, and change the background color of the name field could be user friendly. +* In back office, the name *OR* the surname is mandatory. In front office, the name *AND* the surname is mandatory. Should be great to have a similar behaviour. +* In back office, default is "company". In front office, default is "individual". The behaviour should however depend by *B2B* or *B2C* setting in order to set the right default. +* In individual mode, in back office, it is possible to select the parent company. In individual mode, in front office, it is not possible. However we would also have to say that odoo doesn't permit the parent company selection. + +The ticket referencing the above information can be read at https://github.com/OCA/pos/pull/775 diff --git a/pos_partner_firstname/static/description/index.html b/pos_partner_firstname/static/description/index.html index db8a8eca0c..b025a92c7d 100644 --- a/pos_partner_firstname/static/description/index.html +++ b/pos_partner_firstname/static/description/index.html @@ -3,7 +3,7 @@ - + POS Partner Firstname