diff --git a/mrp_subcontracting_skip_no_negative/README.rst b/mrp_subcontracting_skip_no_negative/README.rst index 527110e6e72..2a72322810b 100644 --- a/mrp_subcontracting_skip_no_negative/README.rst +++ b/mrp_subcontracting_skip_no_negative/README.rst @@ -17,13 +17,13 @@ MRP Subcontracting Skip No Negative :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github - :target: https://github.com/OCA/manufacture/tree/16.0/mrp_subcontracting_skip_no_negative + :target: https://github.com/OCA/manufacture/tree/14.0/mrp_subcontracting_skip_no_negative :alt: OCA/manufacture .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_subcontracting_skip_no_negative + :target: https://translation.odoo-community.org/projects/manufacture-14-0/manufacture-14-0-mrp_subcontracting_skip_no_negative :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/manufacture&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/manufacture&target_branch=14.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -57,7 +57,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. @@ -89,6 +89,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/manufacture `_ project on GitHub. +This module is part of the `OCA/manufacture `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mrp_subcontracting_skip_no_negative/__manifest__.py b/mrp_subcontracting_skip_no_negative/__manifest__.py index 3d624be50c4..d52868eee2f 100644 --- a/mrp_subcontracting_skip_no_negative/__manifest__.py +++ b/mrp_subcontracting_skip_no_negative/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) { "name": "MRP Subcontracting Skip No Negative", - "version": "16.0.1.0.1", + "version": "14.0.1.0.0", "license": "AGPL-3", "author": "Quartile Limited, Odoo Community Association (OCA)", "website": "https://github.com/OCA/manufacture", diff --git a/mrp_subcontracting_skip_no_negative/models/stock_picking.py b/mrp_subcontracting_skip_no_negative/models/stock_picking.py index 015c8554ac6..9e8cfd468ba 100644 --- a/mrp_subcontracting_skip_no_negative/models/stock_picking.py +++ b/mrp_subcontracting_skip_no_negative/models/stock_picking.py @@ -13,10 +13,10 @@ def _action_done(self): return res def _check_negative_quants_after_process(self): - product_ids = self.mapped("move_ids.product_id.id") + products = self.mapped("move_lines.product_id") quants = self.env["stock.quant"].search( [ - ("product_id", "in", product_ids), + ("product_id", "in", products.ids), ] ) quants.check_negative_qty() diff --git a/mrp_subcontracting_skip_no_negative/static/description/index.html b/mrp_subcontracting_skip_no_negative/static/description/index.html index cde0c71125d..3894fa59d24 100644 --- a/mrp_subcontracting_skip_no_negative/static/description/index.html +++ b/mrp_subcontracting_skip_no_negative/static/description/index.html @@ -368,7 +368,7 @@

MRP Subcontracting Skip No Negative

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:be1748f4d86ee601f04fee6c3ecec9db99e0aff2f2628d99f01406f1a1e20cf5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module skips the negative quantity check, provided by stock_no_negative, for subcontracting receipts.

@@ -393,7 +393,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.

@@ -422,7 +422,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/manufacture project on GitHub.

+

This module is part of the OCA/manufacture project on GitHub.

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

diff --git a/setup/mrp_subcontracting_skip_no_negative/odoo/addons/mrp_subcontracting_skip_no_negative b/setup/mrp_subcontracting_skip_no_negative/odoo/addons/mrp_subcontracting_skip_no_negative new file mode 120000 index 00000000000..36e603e2bbe --- /dev/null +++ b/setup/mrp_subcontracting_skip_no_negative/odoo/addons/mrp_subcontracting_skip_no_negative @@ -0,0 +1 @@ +../../../../mrp_subcontracting_skip_no_negative \ No newline at end of file diff --git a/setup/mrp_subcontracting_skip_no_negative/setup.py b/setup/mrp_subcontracting_skip_no_negative/setup.py new file mode 100644 index 00000000000..28c57bb6403 --- /dev/null +++ b/setup/mrp_subcontracting_skip_no_negative/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)