From c63d8a7262690ad7b491133410df428d42e6460a Mon Sep 17 00:00:00 2001 From: Iria Alonso Date: Fri, 29 Nov 2024 10:17:27 +0100 Subject: [PATCH] [ADD] sale_order_restrict_customer_field --- sale_order_restrict_customer_field/README.rst | 60 +++ .../__init__.py | 1 + .../__manifest__.py | 20 + .../models/__init__.py | 1 + .../models/res_partner.py | 16 + .../readme/CONTRIBUTORS.rst | 1 + .../readme/DESCRIPTION.rst | 1 + .../static/description/icon.png | Bin 0 -> 22150 bytes .../static/description/index.html | 415 ++++++++++++++++++ .../views/sale_order_views.xml | 14 + 10 files changed, 529 insertions(+) create mode 100644 sale_order_restrict_customer_field/README.rst create mode 100644 sale_order_restrict_customer_field/__init__.py create mode 100644 sale_order_restrict_customer_field/__manifest__.py create mode 100644 sale_order_restrict_customer_field/models/__init__.py create mode 100644 sale_order_restrict_customer_field/models/res_partner.py create mode 100644 sale_order_restrict_customer_field/readme/CONTRIBUTORS.rst create mode 100644 sale_order_restrict_customer_field/readme/DESCRIPTION.rst create mode 100644 sale_order_restrict_customer_field/static/description/icon.png create mode 100644 sale_order_restrict_customer_field/static/description/index.html create mode 100644 sale_order_restrict_customer_field/views/sale_order_views.xml diff --git a/sale_order_restrict_customer_field/README.rst b/sale_order_restrict_customer_field/README.rst new file mode 100644 index 0000000..9ceab49 --- /dev/null +++ b/sale_order_restrict_customer_field/README.rst @@ -0,0 +1,60 @@ +================================== +Sale Order Restrict Customer Field +================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:45a662696da311a024814f84ad2ca30af88a7aaf91561d1e23b5fd679d5ae104 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-solvosci%2Fslv--sale-lightgray.png?logo=github + :target: https://github.com/solvosci/slv-sale/tree/17.0/sale_order_restrict_customer_field + :alt: solvosci/slv-sale + +|badge1| |badge2| |badge3| + +Only customers and delivery addresses can be selected on "customer" field + +**Table of contents** + +.. contents:: + :local: + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Solvos + +Contributors +~~~~~~~~~~~~ + +* Iria Alonso + +Maintainers +~~~~~~~~~~~ + +This module is part of the `solvosci/slv-sale `_ project on GitHub. + +You are welcome to contribute. diff --git a/sale_order_restrict_customer_field/__init__.py b/sale_order_restrict_customer_field/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/sale_order_restrict_customer_field/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/sale_order_restrict_customer_field/__manifest__.py b/sale_order_restrict_customer_field/__manifest__.py new file mode 100644 index 0000000..fd2c1a9 --- /dev/null +++ b/sale_order_restrict_customer_field/__manifest__.py @@ -0,0 +1,20 @@ +# © 2024 Solvos Consultoría Informática () +# License LGPL-3 - See http://www.gnu.org/licenses/lgpl-3.0.html +{ + "name": "Sale Order Restrict Customer Field", + "summary": """ + Only customers and delivery addresses can be selected on "partner_id" field + """, + "author": "Solvos", + "license": "LGPL-3", + "version": "17.0.1.0.0", + "category": "Inventory/Purchase", + "website": "https://github.com/solvosci/slv-sale", + "depends": [ + "sale", + ], + "data": [ + "views/sale_order_views.xml", + ], + 'installable': True, +} diff --git a/sale_order_restrict_customer_field/models/__init__.py b/sale_order_restrict_customer_field/models/__init__.py new file mode 100644 index 0000000..91fed54 --- /dev/null +++ b/sale_order_restrict_customer_field/models/__init__.py @@ -0,0 +1 @@ +from . import res_partner diff --git a/sale_order_restrict_customer_field/models/res_partner.py b/sale_order_restrict_customer_field/models/res_partner.py new file mode 100644 index 0000000..b96902b --- /dev/null +++ b/sale_order_restrict_customer_field/models/res_partner.py @@ -0,0 +1,16 @@ +# © 2024 Solvos Consultoría Informática () +# License LGPL-3 - See http://www.gnu.org/licenses/lgpl-3.0.html +from odoo import models, fields + + +class ResPartner(models.Model): + _inherit = 'res.partner' + + is_customer = fields.Boolean(compute="_compute_is_customer", store=True) + + def _compute_is_customer(self): + for record in self: + if record.type == "contact" or record.type == "delivery": + record.is_customer = True + else: + record.is_customer = False diff --git a/sale_order_restrict_customer_field/readme/CONTRIBUTORS.rst b/sale_order_restrict_customer_field/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..8b5203a --- /dev/null +++ b/sale_order_restrict_customer_field/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Iria Alonso diff --git a/sale_order_restrict_customer_field/readme/DESCRIPTION.rst b/sale_order_restrict_customer_field/readme/DESCRIPTION.rst new file mode 100644 index 0000000..1ec9ed4 --- /dev/null +++ b/sale_order_restrict_customer_field/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Only customers and delivery addresses can be selected on "partner_id" field diff --git a/sale_order_restrict_customer_field/static/description/icon.png b/sale_order_restrict_customer_field/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..daa2a02998e75dec5ab62013c2edaa3063f95622 GIT binary patch literal 22150 zcmeFYbyQr?|M$^5j=KR&HU(Gpd)v8)is>(9R2m}ZK003D|R#F}O9r*hLga!Za6*d_K z00?<}G=-cA;z7G5Ar0KjXh^3!3WK2K`cYi~3g#3RgDHvt=Q z?ENK?IrgW|C8^{s@5nhAE}6Ov#vuipFW8^4V~#K_v;pY8QdYQkvVu~Yxx zSXz!Ex^2-2_s9rW{`^wvu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y6_q+dj`}Xbs zQP=g@;lqdT{pd$OdT+zdzxGD7^>20n1fNv`>wxS2=#Tzr9N?jc9y$WNK)oT;y_n + + + + +Sale Order Restrict Customer Field + + + +
+

Sale Order Restrict Customer Field

+ + +

Beta License: LGPL-3 solvosci/slv-sale

+

Only customers and delivery addresses can be selected on “customer” field

+

Table of contents

+ +
+

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 to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Solvos
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the solvosci/slv-sale project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/sale_order_restrict_customer_field/views/sale_order_views.xml b/sale_order_restrict_customer_field/views/sale_order_views.xml new file mode 100644 index 0000000..25cbfd7 --- /dev/null +++ b/sale_order_restrict_customer_field/views/sale_order_views.xml @@ -0,0 +1,14 @@ + + + + sale.order.view.form + sale.order + + + + [('is_customer','=',True)] + + + + +