From 6cbd36cb36514e6557fc59ca0fbd172129ecc4a2 Mon Sep 17 00:00:00 2001 From: achulii <96129046+achulii@users.noreply.github.com> Date: Fri, 24 Jan 2025 14:22:20 +0100 Subject: [PATCH] [MIG] purchase_allowed_product: Migration to 18.0 remove unnecessary files --- purchase_allowed_product/README.rst | 28 +++++++++---------- purchase_allowed_product/__manifest__.py | 2 +- purchase_allowed_product/models/product.py | 2 -- .../static/description/index.html | 6 ++-- .../tests/test_purchase_allowed_product.py | 3 +- .../views/account_move_views.xml | 2 +- .../views/purchase_order_views.xml | 2 +- requirements.txt | 2 ++ 8 files changed, 24 insertions(+), 23 deletions(-) create mode 100644 requirements.txt diff --git a/purchase_allowed_product/README.rst b/purchase_allowed_product/README.rst index af22cacb6fb..9ce3f36720b 100644 --- a/purchase_allowed_product/README.rst +++ b/purchase_allowed_product/README.rst @@ -17,13 +17,13 @@ Purchase and Invoice Allowed Product :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpurchase--workflow-lightgray.png?logo=github - :target: https://github.com/OCA/purchase-workflow/tree/17.0/purchase_allowed_product + :target: https://github.com/OCA/purchase-workflow/tree/18.0/purchase_allowed_product :alt: OCA/purchase-workflow .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-purchase_allowed_product + :target: https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-purchase_allowed_product :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/purchase-workflow&target_branch=17.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/purchase-workflow&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -48,7 +48,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -63,19 +63,19 @@ Authors Contributors ------------ -- Chafique Delli -- Mourad EL HADJ MIMOUNE -- Hieu, Vo Minh Bao -- `Tecnativa `__: +- Chafique Delli +- Mourad EL HADJ MIMOUNE +- Hieu, Vo Minh Bao +- `Tecnativa `__: - - Manuel Calero - - Pedro M. Baeza + - Manuel Calero + - Pedro M. Baeza -- `Via laurea `__: +- `Via laurea `__: - - Darius Žižys + - Darius Žižys -- Eduardo de Miguel (`Moduon `__) +- Eduardo de Miguel (`Moduon `__) Maintainers ----------- @@ -90,6 +90,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/purchase-workflow `_ project on GitHub. +This module is part of the `OCA/purchase-workflow `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/purchase_allowed_product/__manifest__.py b/purchase_allowed_product/__manifest__.py index 9e123f7e857..19f9ed20dbe 100644 --- a/purchase_allowed_product/__manifest__.py +++ b/purchase_allowed_product/__manifest__.py @@ -6,7 +6,7 @@ "name": "Purchase and Invoice Allowed Product", "summary": "This module allows to select only products that can be " "supplied by the vendor", - "version": "17.0.1.0.0", + "version": "18.0.1.0.0", "category": "Accounting & Finance", "website": "https://github.com/OCA/purchase-workflow", "author": "Akretion, Odoo Community Association (OCA)", diff --git a/purchase_allowed_product/models/product.py b/purchase_allowed_product/models/product.py index 0329f3a1759..f2af0c24a15 100644 --- a/purchase_allowed_product/models/product.py +++ b/purchase_allowed_product/models/product.py @@ -16,7 +16,6 @@ def _search( offset=0, limit=None, order=None, - access_rights_uid=None, ): if self.env.context.get("use_only_supplied_product"): restrict_supplier_id = self.env.context.get("restrict_supplier_id") @@ -38,5 +37,4 @@ def _search( offset=offset, limit=limit, order=order, - access_rights_uid=access_rights_uid, ) diff --git a/purchase_allowed_product/static/description/index.html b/purchase_allowed_product/static/description/index.html index 65dd44c954f..64e23737cef 100644 --- a/purchase_allowed_product/static/description/index.html +++ b/purchase_allowed_product/static/description/index.html @@ -369,7 +369,7 @@

Purchase and Invoice Allowed Product

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:376569ec84ca307bb83baf306b91200c633f7ee20fd6f9feb448155fb174beef !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/purchase-workflow Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/purchase-workflow Translate me on Weblate Try me on Runboat

This module adds a restriction in purchase and supplier invoices that has the mark “Order and invoice only supplied products” checked for allowing to select only products that can be supplied by the defined @@ -394,7 +394,7 @@

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.

+feedback.

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

@@ -432,7 +432,7 @@

Maintainers

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

This module is part of the OCA/purchase-workflow project on GitHub.

+

This module is part of the OCA/purchase-workflow project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/purchase_allowed_product/tests/test_purchase_allowed_product.py b/purchase_allowed_product/tests/test_purchase_allowed_product.py index dc8e0c7edcb..4cf0d31ad56 100644 --- a/purchase_allowed_product/tests/test_purchase_allowed_product.py +++ b/purchase_allowed_product/tests/test_purchase_allowed_product.py @@ -3,7 +3,8 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo.tests.common import Form, TransactionCase +from odoo.tests import Form +from odoo.tests.common import TransactionCase class TestPurchaseAllowedProduct(TransactionCase): diff --git a/purchase_allowed_product/views/account_move_views.xml b/purchase_allowed_product/views/account_move_views.xml index 1e9645657c3..d0042bb2692 100644 --- a/purchase_allowed_product/views/account_move_views.xml +++ b/purchase_allowed_product/views/account_move_views.xml @@ -12,7 +12,7 @@ /> diff --git a/purchase_allowed_product/views/purchase_order_views.xml b/purchase_allowed_product/views/purchase_order_views.xml index 321a1b7c130..8ac7bb4e1f8 100644 --- a/purchase_allowed_product/views/purchase_order_views.xml +++ b/purchase_allowed_product/views/purchase_order_views.xml @@ -8,7 +8,7 @@ diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000000..f0e2006cc32 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +# generated from manifests external_dependencies +astor