From 1e842b2fb7e399e234acbc37ee226fab4180a3dd Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 5 May 2020 23:29:58 +0200 Subject: [PATCH 01/43] Add module purchase_reception_status --- purchase_reception_status/__init__.py | 1 + purchase_reception_status/__manifest__.py | 19 +++++++ purchase_reception_status/models/__init__.py | 1 + .../models/purchase_order.py | 50 ++++++++++++++++++ .../readme/CONTRIBUTORS.rst | 1 + .../readme/DESCRIPTION.rst | 5 ++ purchase_reception_status/readme/USAGE.rst | 1 + .../views/purchase_order.xml | 51 +++++++++++++++++++ 8 files changed, 129 insertions(+) create mode 100644 purchase_reception_status/__init__.py create mode 100644 purchase_reception_status/__manifest__.py create mode 100644 purchase_reception_status/models/__init__.py create mode 100644 purchase_reception_status/models/purchase_order.py create mode 100644 purchase_reception_status/readme/CONTRIBUTORS.rst create mode 100644 purchase_reception_status/readme/DESCRIPTION.rst create mode 100644 purchase_reception_status/readme/USAGE.rst create mode 100644 purchase_reception_status/views/purchase_order.xml diff --git a/purchase_reception_status/__init__.py b/purchase_reception_status/__init__.py new file mode 100644 index 00000000000..0650744f6bc --- /dev/null +++ b/purchase_reception_status/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/purchase_reception_status/__manifest__.py b/purchase_reception_status/__manifest__.py new file mode 100644 index 00000000000..2c4e329bb7f --- /dev/null +++ b/purchase_reception_status/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2020 Akretion France (http://www.akretion.com/) +# @author: Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Purchase Reception Status', + 'version': '12.0.1.0.0', + 'category': 'Purchases', + 'license': 'AGPL-3', + 'summary': 'Add reception status on purchase orders', + 'author': 'Akretion,Odoo Community Association (OCA)', + 'maintainers': ['alexis-via'], + 'website': 'https://github.com/OCA/purchase-workflow', + 'depends': ['purchase'], + 'data': [ + 'views/purchase_order.xml', + ], + 'installable': True, +} diff --git a/purchase_reception_status/models/__init__.py b/purchase_reception_status/models/__init__.py new file mode 100644 index 00000000000..9f03530643d --- /dev/null +++ b/purchase_reception_status/models/__init__.py @@ -0,0 +1 @@ +from . import purchase_order diff --git a/purchase_reception_status/models/purchase_order.py b/purchase_reception_status/models/purchase_order.py new file mode 100644 index 00000000000..5e7facc7a2d --- /dev/null +++ b/purchase_reception_status/models/purchase_order.py @@ -0,0 +1,50 @@ +# Copyright 2020 Akretion France (http://www.akretion.com/) +# @author: Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models +from odoo.tools import float_compare + + +class PurchaseOrder(models.Model): + _inherit = 'purchase.order' + + reception_status = fields.Selection([ + ('no', 'Nothing Received'), + ('partial', 'Partially Received'), + ('received', 'Fully Received'), + ], compute='_compute_reception_status', + string='Reception Status', store=True) + force_received = fields.Boolean( + string='Force Received', + readonly=True, states={'done': [('readonly', False)]}, copy=False, + help="If true, the reception status will be forced to Fully Received, " + "even if some lines are not fully received. " + "To be able to modify this field, you must first lock the order.") + + @api.depends( + 'state', 'force_received', + 'order_line.qty_received', 'order_line.product_qty') + def _compute_reception_status(self): + prec = self.env['decimal.precision'].precision_get( + 'Product Unit of Measure') + for order in self: + status = 'no' + if order.state in ('purchase', 'done'): + if order.force_received: + status = 'received' + elif all([ + float_compare( + line.qty_received, + line.product_qty, + precision_digits=prec) >= 0 + for line in order.order_line]): + status = 'received' + elif any([ + float_compare( + line.qty_received, + 0, + precision_digits=prec) > 0 + for line in order.order_line]): + status = 'partial' + order.reception_status = status diff --git a/purchase_reception_status/readme/CONTRIBUTORS.rst b/purchase_reception_status/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..ff65d68ce6d --- /dev/null +++ b/purchase_reception_status/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Alexis de Lattre diff --git a/purchase_reception_status/readme/DESCRIPTION.rst b/purchase_reception_status/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..285d3626d25 --- /dev/null +++ b/purchase_reception_status/readme/DESCRIPTION.rst @@ -0,0 +1,5 @@ +This module adds a field *Receiption Status* on purchase orders. On a confirmed purchase order, it can have 3 different values: + +* Nothing Received +* Partially Received +* Fully Received diff --git a/purchase_reception_status/readme/USAGE.rst b/purchase_reception_status/readme/USAGE.rst new file mode 100644 index 00000000000..8af96fb5f2a --- /dev/null +++ b/purchase_reception_status/readme/USAGE.rst @@ -0,0 +1 @@ +If you are part of the *Purchase Manager* group, you can force a confirmed purchase order to **Full Received** status: you should first *lock* the order, then check the field **Force Received** located in the *Other Information* tab. diff --git a/purchase_reception_status/views/purchase_order.xml b/purchase_reception_status/views/purchase_order.xml new file mode 100644 index 00000000000..e3fb00b27e6 --- /dev/null +++ b/purchase_reception_status/views/purchase_order.xml @@ -0,0 +1,51 @@ + + + + + + + + received_status.purchase.order.form + purchase.order + + + + + + + + + + + received_status.purchase.order.tree + purchase.order + + + + + + + + + + received_status.purchase.order.search + purchase.order + + + + + + + + + + + + + + + From 28680f763da2f3ef3f122197cef9ca80e88eb937 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Wed, 6 May 2020 13:39:05 +0000 Subject: [PATCH 02/43] [UPD] Update purchase_reception_status.pot --- .../i18n/purchase_reception_status.pot | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 purchase_reception_status/i18n/purchase_reception_status.pot diff --git a/purchase_reception_status/i18n/purchase_reception_status.pot b/purchase_reception_status/i18n/purchase_reception_status.pot new file mode 100644 index 00000000000..2d2a5675089 --- /dev/null +++ b/purchase_reception_status/i18n/purchase_reception_status.pot @@ -0,0 +1,57 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_reception_status +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: purchase_reception_status +#: model:ir.model.fields,field_description:purchase_reception_status.field_purchase_order__force_received +msgid "Force Received" +msgstr "" + +#. module: purchase_reception_status +#: model_terms:ir.ui.view,arch_db:purchase_reception_status.view_purchase_order_filter +#: selection:purchase.order,reception_status:0 +msgid "Fully Received" +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model.fields,help:purchase_reception_status.field_purchase_order__force_received +msgid "If true, the reception status will be forced to Fully Received, even if some lines are not fully received. To be able to modify this field, you must first lock the order." +msgstr "" + +#. module: purchase_reception_status +#: model_terms:ir.ui.view,arch_db:purchase_reception_status.view_purchase_order_filter +msgid "Not Fully Received" +msgstr "" + +#. module: purchase_reception_status +#: selection:purchase.order,reception_status:0 +msgid "Nothing Received" +msgstr "" + +#. module: purchase_reception_status +#: selection:purchase.order,reception_status:0 +msgid "Partially Received" +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model,name:purchase_reception_status.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model.fields,field_description:purchase_reception_status.field_purchase_order__reception_status +#: model_terms:ir.ui.view,arch_db:purchase_reception_status.view_purchase_order_filter +msgid "Reception Status" +msgstr "" + From e40c6b635bd6476ff5143a8b2107bb6bb19c36dd Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 6 May 2020 14:23:35 +0000 Subject: [PATCH 03/43] [UPD] README.rst --- purchase_reception_status/README.rst | 90 ++++ .../static/description/index.html | 431 ++++++++++++++++++ 2 files changed, 521 insertions(+) create mode 100644 purchase_reception_status/README.rst create mode 100644 purchase_reception_status/static/description/index.html diff --git a/purchase_reception_status/README.rst b/purchase_reception_status/README.rst new file mode 100644 index 00000000000..5603de3ddff --- /dev/null +++ b/purchase_reception_status/README.rst @@ -0,0 +1,90 @@ +========================= +Purchase Reception Status +========================= + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-AGPL--3-blue.png + :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/12.0/purchase_reception_status + :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-12-0/purchase-workflow-12-0-purchase_reception_status + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/142/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds a field *Receiption Status* on purchase orders. On a confirmed purchase order, it can have 3 different values: + +* Nothing Received +* Partially Received +* Fully Received + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +If you are part of the *Purchase Manager* group, you can force a confirmed purchase order to **Full Received** status: you should first *lock* the order, then check the field **Force Received** located in the *Other Information* tab. + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Akretion + +Contributors +~~~~~~~~~~~~ + +* Alexis de Lattre + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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. + +.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px + :target: https://github.com/alexis-via + :alt: alexis-via + +Current `maintainer `__: + +|maintainer-alexis-via| + +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_reception_status/static/description/index.html b/purchase_reception_status/static/description/index.html new file mode 100644 index 00000000000..1bc2a8757a0 --- /dev/null +++ b/purchase_reception_status/static/description/index.html @@ -0,0 +1,431 @@ + + + + + + +Purchase Reception Status + + + +
+

Purchase Reception Status

+ + +

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

+

This module adds a field Receiption Status on purchase orders. On a confirmed purchase order, it can have 3 different values:

+
    +
  • Nothing Received
  • +
  • Partially Received
  • +
  • Fully Received
  • +
+

Table of contents

+ +
+

Usage

+

If you are part of the Purchase Manager group, you can force a confirmed purchase order to Full Received status: you should first lock the order, then check the field Force Received located in the Other Information tab.

+
+
+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Akretion
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainer:

+

alexis-via

+

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.

+
+
+
+ + From 7461a689d68e2bd2bd02e9d078d674924304d776 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 6 May 2020 14:23:35 +0000 Subject: [PATCH 04/43] [ADD] icon.png --- .../static/description/icon.png | Bin 0 -> 9455 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 purchase_reception_status/static/description/icon.png diff --git a/purchase_reception_status/static/description/icon.png b/purchase_reception_status/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpnB`o+K7|Al`Q_U;eD$B zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__ zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_ zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(xz{=FhLB@(1&qHA5EJw1>>=%q2f&^X>IQ{!GJ4e9U z&KlB)z(84HmNgm2hg2C0>WM{E(DdPr+EeU_N@57;PC2&DmGFW_9kP&%?X4}+xWi)( z;)z%wI5>D4a*5XwD)P--sPkoY(a~WBw;E~AW`Yue4kFa^LM3X`8x|}ZUeMnqr}>kH zG%WWW>3ml$Yez?i%)2pbKPI7?5o?hydokgQyZsNEr{a|mLdt;X2TX(#B1j35xPnPW z*bMSSOauW>o;*=kO8ojw91VX!qoOQb)zHJ!odWB}d+*K?#sY_jqPdg{Sm2HdYzdEx zOGVPhVRTGPtv0o}RfVP;Nd(|CB)I;*t&QO8h zFfekr30S!-LHmV_Su-W+rEwYXJ^;6&3|L$mMC8*bQptyOo9;>Qb9Q9`ySe3%V$A*9 zeKEe+b0{#KWGp$F+tga)0RtI)nhMa-K@JS}2krK~n8vJ=Ngm?R!9G<~RyuU0d?nz#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olnik Date: Sat, 23 May 2020 20:40:46 +0200 Subject: [PATCH 05/43] [IMP] purchase_reception_status: black, isort, prettier --- purchase_reception_status/__manifest__.py | 24 +++-- .../models/purchase_order.py | 69 ++++++++------ .../views/purchase_order.xml | 93 ++++++++++--------- 3 files changed, 101 insertions(+), 85 deletions(-) diff --git a/purchase_reception_status/__manifest__.py b/purchase_reception_status/__manifest__.py index 2c4e329bb7f..84756977d33 100644 --- a/purchase_reception_status/__manifest__.py +++ b/purchase_reception_status/__manifest__.py @@ -3,17 +3,15 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { - 'name': 'Purchase Reception Status', - 'version': '12.0.1.0.0', - 'category': 'Purchases', - 'license': 'AGPL-3', - 'summary': 'Add reception status on purchase orders', - 'author': 'Akretion,Odoo Community Association (OCA)', - 'maintainers': ['alexis-via'], - 'website': 'https://github.com/OCA/purchase-workflow', - 'depends': ['purchase'], - 'data': [ - 'views/purchase_order.xml', - ], - 'installable': True, + "name": "Purchase Reception Status", + "version": "12.0.1.0.0", + "category": "Purchases", + "license": "AGPL-3", + "summary": "Add reception status on purchase orders", + "author": "Akretion,Odoo Community Association (OCA)", + "maintainers": ["alexis-via"], + "website": "https://github.com/OCA/purchase-workflow", + "depends": ["purchase"], + "data": ["views/purchase_order.xml",], + "installable": True, } diff --git a/purchase_reception_status/models/purchase_order.py b/purchase_reception_status/models/purchase_order.py index 5e7facc7a2d..5f9da770b55 100644 --- a/purchase_reception_status/models/purchase_order.py +++ b/purchase_reception_status/models/purchase_order.py @@ -7,44 +7,53 @@ class PurchaseOrder(models.Model): - _inherit = 'purchase.order' + _inherit = "purchase.order" - reception_status = fields.Selection([ - ('no', 'Nothing Received'), - ('partial', 'Partially Received'), - ('received', 'Fully Received'), - ], compute='_compute_reception_status', - string='Reception Status', store=True) + reception_status = fields.Selection( + [ + ("no", "Nothing Received"), + ("partial", "Partially Received"), + ("received", "Fully Received"), + ], + compute="_compute_reception_status", + string="Reception Status", + store=True, + ) force_received = fields.Boolean( - string='Force Received', - readonly=True, states={'done': [('readonly', False)]}, copy=False, + string="Force Received", + readonly=True, + states={"done": [("readonly", False)]}, + copy=False, help="If true, the reception status will be forced to Fully Received, " "even if some lines are not fully received. " - "To be able to modify this field, you must first lock the order.") + "To be able to modify this field, you must first lock the order.", + ) @api.depends( - 'state', 'force_received', - 'order_line.qty_received', 'order_line.product_qty') + "state", "force_received", "order_line.qty_received", "order_line.product_qty" + ) def _compute_reception_status(self): - prec = self.env['decimal.precision'].precision_get( - 'Product Unit of Measure') + prec = self.env["decimal.precision"].precision_get("Product Unit of Measure") for order in self: - status = 'no' - if order.state in ('purchase', 'done'): + status = "no" + if order.state in ("purchase", "done"): if order.force_received: - status = 'received' - elif all([ + status = "received" + elif all( + [ float_compare( - line.qty_received, - line.product_qty, - precision_digits=prec) >= 0 - for line in order.order_line]): - status = 'received' - elif any([ - float_compare( - line.qty_received, - 0, - precision_digits=prec) > 0 - for line in order.order_line]): - status = 'partial' + line.qty_received, line.product_qty, precision_digits=prec + ) + >= 0 + for line in order.order_line + ] + ): + status = "received" + elif any( + [ + float_compare(line.qty_received, 0, precision_digits=prec) > 0 + for line in order.order_line + ] + ): + status = "partial" order.reception_status = status diff --git a/purchase_reception_status/views/purchase_order.xml b/purchase_reception_status/views/purchase_order.xml index e3fb00b27e6..d68659952c7 100644 --- a/purchase_reception_status/views/purchase_order.xml +++ b/purchase_reception_status/views/purchase_order.xml @@ -1,51 +1,60 @@ - + - - - - - received_status.purchase.order.form - purchase.order - - - - - + + received_status.purchase.order.form + purchase.order + + + + + + - - - - - received_status.purchase.order.tree - purchase.order - - - - + + + received_status.purchase.order.tree + purchase.order + + + + + - - - - - received_status.purchase.order.search - purchase.order - - - - - - - - - - - - - - + + + received_status.purchase.order.search + purchase.order + + + + + + + + + + + + From 7c2f292d3fb1b385cc6cd19f7c4731ed5cef2276 Mon Sep 17 00:00:00 2001 From: Radovan Skolnik Date: Sun, 24 May 2020 00:32:28 +0200 Subject: [PATCH 06/43] [MIG] purchase_receptions_status: Migration to 13.0 --- purchase_reception_status/README.rst | 8 ++++---- purchase_reception_status/__manifest__.py | 4 ++-- .../i18n/purchase_reception_status.pot | 2 +- .../static/description/index.html | 6 +++--- purchase_reception_status/views/purchase_order.xml | 12 +++++++++++- 5 files changed, 21 insertions(+), 11 deletions(-) diff --git a/purchase_reception_status/README.rst b/purchase_reception_status/README.rst index 5603de3ddff..2a27866368a 100644 --- a/purchase_reception_status/README.rst +++ b/purchase_reception_status/README.rst @@ -14,13 +14,13 @@ Purchase Reception Status :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/12.0/purchase_reception_status + :target: https://github.com/OCA/purchase-workflow/tree/13.0/purchase_reception_status :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-12-0/purchase-workflow-12-0-purchase_reception_status :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/142/12.0 + :target: https://runbot.odoo-community.org/runbot/142/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -47,7 +47,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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -85,6 +85,6 @@ Current `maintainer `__: |maintainer-alexis-via| -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_reception_status/__manifest__.py b/purchase_reception_status/__manifest__.py index 84756977d33..62524282dd3 100644 --- a/purchase_reception_status/__manifest__.py +++ b/purchase_reception_status/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Purchase Reception Status", - "version": "12.0.1.0.0", + "version": "13.0.1.0.0", "category": "Purchases", "license": "AGPL-3", "summary": "Add reception status on purchase orders", @@ -12,6 +12,6 @@ "maintainers": ["alexis-via"], "website": "https://github.com/OCA/purchase-workflow", "depends": ["purchase"], - "data": ["views/purchase_order.xml",], + "data": ["views/purchase_order.xml"], "installable": True, } diff --git a/purchase_reception_status/i18n/purchase_reception_status.pot b/purchase_reception_status/i18n/purchase_reception_status.pot index 2d2a5675089..1eff77f55e9 100644 --- a/purchase_reception_status/i18n/purchase_reception_status.pot +++ b/purchase_reception_status/i18n/purchase_reception_status.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" diff --git a/purchase_reception_status/static/description/index.html b/purchase_reception_status/static/description/index.html index 1bc2a8757a0..7d5ebec62b8 100644 --- a/purchase_reception_status/static/description/index.html +++ b/purchase_reception_status/static/description/index.html @@ -367,7 +367,7 @@

Purchase Reception Status

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module adds a field Receiption Status on purchase orders. On a confirmed purchase order, it can have 3 different values:

  • Nothing Received
  • @@ -396,7 +396,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 smashing 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

    promote its widespread use.

    Current maintainer:

    alexis-via

    -

    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_reception_status/views/purchase_order.xml b/purchase_reception_status/views/purchase_order.xml index d68659952c7..b855040dbc2 100644 --- a/purchase_reception_status/views/purchase_order.xml +++ b/purchase_reception_status/views/purchase_order.xml @@ -30,10 +30,20 @@ + + received_status.purchase.order.tree + purchase.order + + + + + + + received_status.purchase.order.search purchase.order - + Date: Sat, 7 Nov 2020 15:08:05 +0000 Subject: [PATCH 07/43] Added translation using Weblate (Italian) --- purchase_reception_status/i18n/it.po | 60 ++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 purchase_reception_status/i18n/it.po diff --git a/purchase_reception_status/i18n/it.po b/purchase_reception_status/i18n/it.po new file mode 100644 index 00000000000..f164be79955 --- /dev/null +++ b/purchase_reception_status/i18n/it.po @@ -0,0 +1,60 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_reception_status +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. module: purchase_reception_status +#: model:ir.model.fields,field_description:purchase_reception_status.field_purchase_order__force_received +msgid "Force Received" +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model.fields.selection,name:purchase_reception_status.selection__purchase_order__reception_status__received +#: model_terms:ir.ui.view,arch_db:purchase_reception_status.view_purchase_order_filter +msgid "Fully Received" +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model.fields,help:purchase_reception_status.field_purchase_order__force_received +msgid "" +"If true, the reception status will be forced to Fully Received, even if some" +" lines are not fully received. To be able to modify this field, you must " +"first lock the order." +msgstr "" + +#. module: purchase_reception_status +#: model_terms:ir.ui.view,arch_db:purchase_reception_status.view_purchase_order_filter +msgid "Not Fully Received" +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model.fields.selection,name:purchase_reception_status.selection__purchase_order__reception_status__no +msgid "Nothing Received" +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model.fields.selection,name:purchase_reception_status.selection__purchase_order__reception_status__partial +msgid "Partially Received" +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model,name:purchase_reception_status.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model.fields,field_description:purchase_reception_status.field_purchase_order__reception_status +#: model_terms:ir.ui.view,arch_db:purchase_reception_status.view_purchase_order_filter +msgid "Reception Status" +msgstr "" From 09111bece9b65e75958c0bee787b05f1e4d8fe4b Mon Sep 17 00:00:00 2001 From: Alessandro Fiorino Date: Sat, 7 Nov 2020 15:08:22 +0000 Subject: [PATCH 08/43] Translated using Weblate (Italian) Currently translated at 100.0% (8 of 8 strings) Translation: purchase-workflow-13.0/purchase-workflow-13.0-purchase_reception_status Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-13-0/purchase-workflow-13-0-purchase_reception_status/it/ --- purchase_reception_status/i18n/it.po | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/purchase_reception_status/i18n/it.po b/purchase_reception_status/i18n/it.po index f164be79955..5a5d82e949b 100644 --- a/purchase_reception_status/i18n/it.po +++ b/purchase_reception_status/i18n/it.po @@ -6,24 +6,26 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2020-11-07 18:08+0000\n" +"Last-Translator: Alessandro Fiorino \n" "Language-Team: none\n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.10\n" #. module: purchase_reception_status #: model:ir.model.fields,field_description:purchase_reception_status.field_purchase_order__force_received msgid "Force Received" -msgstr "" +msgstr "Forza Ricevuto" #. module: purchase_reception_status #: model:ir.model.fields.selection,name:purchase_reception_status.selection__purchase_order__reception_status__received #: model_terms:ir.ui.view,arch_db:purchase_reception_status.view_purchase_order_filter msgid "Fully Received" -msgstr "" +msgstr "Ricevuto Completamente" #. module: purchase_reception_status #: model:ir.model.fields,help:purchase_reception_status.field_purchase_order__force_received @@ -32,29 +34,32 @@ msgid "" " lines are not fully received. To be able to modify this field, you must " "first lock the order." msgstr "" +"Se vero, lo stato di ricezione sarà forzato a Completamente Ricevuto, anche " +"se alcune righe non sono state completamente ricevute. Per essere in grado " +"di modificare questo campo, devi prima aver bloccato l'ordine." #. module: purchase_reception_status #: model_terms:ir.ui.view,arch_db:purchase_reception_status.view_purchase_order_filter msgid "Not Fully Received" -msgstr "" +msgstr "Ricevuto Parzialmente" #. module: purchase_reception_status #: model:ir.model.fields.selection,name:purchase_reception_status.selection__purchase_order__reception_status__no msgid "Nothing Received" -msgstr "" +msgstr "Nulla Ricevuto" #. module: purchase_reception_status #: model:ir.model.fields.selection,name:purchase_reception_status.selection__purchase_order__reception_status__partial msgid "Partially Received" -msgstr "" +msgstr "Ricevuto Parzialmente" #. module: purchase_reception_status #: model:ir.model,name:purchase_reception_status.model_purchase_order msgid "Purchase Order" -msgstr "" +msgstr "Ordine d'Acquisto" #. module: purchase_reception_status #: model:ir.model.fields,field_description:purchase_reception_status.field_purchase_order__reception_status #: model_terms:ir.ui.view,arch_db:purchase_reception_status.view_purchase_order_filter msgid "Reception Status" -msgstr "" +msgstr "Stato Ricezione" From 8a7dcde48f2cc77779bd2bf3f33d3ba8d76e07c4 Mon Sep 17 00:00:00 2001 From: koen Date: Tue, 5 Jan 2021 17:09:53 +0100 Subject: [PATCH 09/43] [14.0-mig-purchase] [MIG] purchase_reception_status: Migration to 14.0 --- purchase_reception_status/README.rst | 6 +++--- purchase_reception_status/__manifest__.py | 2 +- purchase_reception_status/static/description/index.html | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/purchase_reception_status/README.rst b/purchase_reception_status/README.rst index 2a27866368a..977a3946350 100644 --- a/purchase_reception_status/README.rst +++ b/purchase_reception_status/README.rst @@ -23,7 +23,7 @@ Purchase Reception Status :target: https://runbot.odoo-community.org/runbot/142/13.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This module adds a field *Receiption Status* on purchase orders. On a confirmed purchase order, it can have 3 different values: @@ -83,8 +83,8 @@ promote its widespread use. Current `maintainer `__: -|maintainer-alexis-via| +|maintainer-alexis-via| -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_reception_status/__manifest__.py b/purchase_reception_status/__manifest__.py index 62524282dd3..a69b328fe32 100644 --- a/purchase_reception_status/__manifest__.py +++ b/purchase_reception_status/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Purchase Reception Status", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "category": "Purchases", "license": "AGPL-3", "summary": "Add reception status on purchase orders", diff --git a/purchase_reception_status/static/description/index.html b/purchase_reception_status/static/description/index.html index 7d5ebec62b8..967deb300f3 100644 --- a/purchase_reception_status/static/description/index.html +++ b/purchase_reception_status/static/description/index.html @@ -367,7 +367,7 @@

    Purchase Reception Status

    !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

    +

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

    This module adds a field Receiption Status on purchase orders. On a confirmed purchase order, it can have 3 different values:

    • Nothing Received
    • @@ -396,7 +396,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 smashing 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

      promote its widespread use.

      Current maintainer:

      alexis-via

      -

      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.

      From f7662c207305a1f70167ac8a20c3074523a86829 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Fri, 12 Mar 2021 06:31:29 +0000 Subject: [PATCH 10/43] [UPD] Update purchase_reception_status.pot --- .../i18n/purchase_reception_status.pot | 33 ++++++++++++++----- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/purchase_reception_status/i18n/purchase_reception_status.pot b/purchase_reception_status/i18n/purchase_reception_status.pot index 1eff77f55e9..15cd2cd7063 100644 --- a/purchase_reception_status/i18n/purchase_reception_status.pot +++ b/purchase_reception_status/i18n/purchase_reception_status.pot @@ -1,32 +1,50 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * purchase_reception_status +# * purchase_reception_status # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\n" +"Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" +#. module: purchase_reception_status +#: model:ir.model.fields,field_description:purchase_reception_status.field_purchase_order__display_name +msgid "Display Name" +msgstr "" + #. module: purchase_reception_status #: model:ir.model.fields,field_description:purchase_reception_status.field_purchase_order__force_received msgid "Force Received" msgstr "" #. module: purchase_reception_status +#: model:ir.model.fields.selection,name:purchase_reception_status.selection__purchase_order__reception_status__received #: model_terms:ir.ui.view,arch_db:purchase_reception_status.view_purchase_order_filter -#: selection:purchase.order,reception_status:0 msgid "Fully Received" msgstr "" +#. module: purchase_reception_status +#: model:ir.model.fields,field_description:purchase_reception_status.field_purchase_order__id +msgid "ID" +msgstr "" + #. module: purchase_reception_status #: model:ir.model.fields,help:purchase_reception_status.field_purchase_order__force_received -msgid "If true, the reception status will be forced to Fully Received, even if some lines are not fully received. To be able to modify this field, you must first lock the order." +msgid "" +"If true, the reception status will be forced to Fully Received, even if some" +" lines are not fully received. To be able to modify this field, you must " +"first lock the order." +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model.fields,field_description:purchase_reception_status.field_purchase_order____last_update +msgid "Last Modified on" msgstr "" #. module: purchase_reception_status @@ -35,12 +53,12 @@ msgid "Not Fully Received" msgstr "" #. module: purchase_reception_status -#: selection:purchase.order,reception_status:0 +#: model:ir.model.fields.selection,name:purchase_reception_status.selection__purchase_order__reception_status__no msgid "Nothing Received" msgstr "" #. module: purchase_reception_status -#: selection:purchase.order,reception_status:0 +#: model:ir.model.fields.selection,name:purchase_reception_status.selection__purchase_order__reception_status__partial msgid "Partially Received" msgstr "" @@ -54,4 +72,3 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:purchase_reception_status.view_purchase_order_filter msgid "Reception Status" msgstr "" - From fd796fb2d8641746f4632f6e8a6c637aa32a455f Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 12 Mar 2021 06:48:55 +0000 Subject: [PATCH 11/43] [UPD] README.rst --- purchase_reception_status/README.rst | 12 ++++++------ .../static/description/index.html | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/purchase_reception_status/README.rst b/purchase_reception_status/README.rst index 977a3946350..5e9262c5828 100644 --- a/purchase_reception_status/README.rst +++ b/purchase_reception_status/README.rst @@ -14,16 +14,16 @@ Purchase Reception Status :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/13.0/purchase_reception_status + :target: https://github.com/OCA/purchase-workflow/tree/14.0/purchase_reception_status :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-12-0/purchase-workflow-12-0-purchase_reception_status + :target: https://translation.odoo-community.org/projects/purchase-workflow-14-0/purchase-workflow-14-0-purchase_reception_status :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/142/13.0 + :target: https://runbot.odoo-community.org/runbot/142/14.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This module adds a field *Receiption Status* on purchase orders. On a confirmed purchase order, it can have 3 different values: @@ -47,7 +47,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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -83,7 +83,7 @@ promote its widespread use. Current `maintainer `__: -|maintainer-alexis-via| +|maintainer-alexis-via| This module is part of the `OCA/purchase-workflow `_ project on GitHub. diff --git a/purchase_reception_status/static/description/index.html b/purchase_reception_status/static/description/index.html index 967deb300f3..d9de347bbf3 100644 --- a/purchase_reception_status/static/description/index.html +++ b/purchase_reception_status/static/description/index.html @@ -367,7 +367,7 @@

      Purchase Reception Status

      !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

      +

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

      This module adds a field Receiption Status on purchase orders. On a confirmed purchase order, it can have 3 different values:

      • Nothing Received
      • From 2195a75093e4de5da5d6ca8ac0e7c97c4b5814ff Mon Sep 17 00:00:00 2001 From: Emmanuel HURET Date: Thu, 27 Jan 2022 09:16:36 +0000 Subject: [PATCH 12/43] Added translation using Weblate (French) --- purchase_reception_status/i18n/fr.po | 75 ++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 purchase_reception_status/i18n/fr.po diff --git a/purchase_reception_status/i18n/fr.po b/purchase_reception_status/i18n/fr.po new file mode 100644 index 00000000000..ce249e3f180 --- /dev/null +++ b/purchase_reception_status/i18n/fr.po @@ -0,0 +1,75 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_reception_status +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" + +#. module: purchase_reception_status +#: model:ir.model.fields,field_description:purchase_reception_status.field_purchase_order__display_name +msgid "Display Name" +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model.fields,field_description:purchase_reception_status.field_purchase_order__force_received +msgid "Force Received" +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model.fields.selection,name:purchase_reception_status.selection__purchase_order__reception_status__received +#: model_terms:ir.ui.view,arch_db:purchase_reception_status.view_purchase_order_filter +msgid "Fully Received" +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model.fields,field_description:purchase_reception_status.field_purchase_order__id +msgid "ID" +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model.fields,help:purchase_reception_status.field_purchase_order__force_received +msgid "" +"If true, the reception status will be forced to Fully Received, even if some" +" lines are not fully received. To be able to modify this field, you must " +"first lock the order." +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model.fields,field_description:purchase_reception_status.field_purchase_order____last_update +msgid "Last Modified on" +msgstr "" + +#. module: purchase_reception_status +#: model_terms:ir.ui.view,arch_db:purchase_reception_status.view_purchase_order_filter +msgid "Not Fully Received" +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model.fields.selection,name:purchase_reception_status.selection__purchase_order__reception_status__no +msgid "Nothing Received" +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model.fields.selection,name:purchase_reception_status.selection__purchase_order__reception_status__partial +msgid "Partially Received" +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model,name:purchase_reception_status.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: purchase_reception_status +#: model:ir.model.fields,field_description:purchase_reception_status.field_purchase_order__reception_status +#: model_terms:ir.ui.view,arch_db:purchase_reception_status.view_purchase_order_filter +msgid "Reception Status" +msgstr "" From 10e05d196c09abf23ca64d9e916dd9ecba720de9 Mon Sep 17 00:00:00 2001 From: Emmanuel HURET Date: Wed, 9 Feb 2022 14:33:38 +0100 Subject: [PATCH 13/43] [MIG] purchase_reception_status: Migration to 15.0 --- purchase_reception_status/README.rst | 14 +++++++------- purchase_reception_status/__manifest__.py | 2 +- purchase_reception_status/models/purchase_order.py | 2 -- .../static/description/index.html | 8 ++++---- 4 files changed, 12 insertions(+), 14 deletions(-) diff --git a/purchase_reception_status/README.rst b/purchase_reception_status/README.rst index 5e9262c5828..426f9a38438 100644 --- a/purchase_reception_status/README.rst +++ b/purchase_reception_status/README.rst @@ -14,16 +14,16 @@ Purchase Reception Status :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/14.0/purchase_reception_status + :target: https://github.com/OCA/purchase-workflow/tree/15.0/purchase_reception_status :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-14-0/purchase-workflow-14-0-purchase_reception_status + :target: https://translation.odoo-community.org/projects/purchase-workflow-15-0/purchase-workflow-15-0-purchase_reception_status :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/142/14.0 + :target: https://runbot.odoo-community.org/runbot/142/15.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This module adds a field *Receiption Status* on purchase orders. On a confirmed purchase order, it can have 3 different values: @@ -47,7 +47,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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -83,8 +83,8 @@ promote its widespread use. Current `maintainer `__: -|maintainer-alexis-via| +|maintainer-alexis-via| -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_reception_status/__manifest__.py b/purchase_reception_status/__manifest__.py index a69b328fe32..a6b99313c49 100644 --- a/purchase_reception_status/__manifest__.py +++ b/purchase_reception_status/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Purchase Reception Status", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "category": "Purchases", "license": "AGPL-3", "summary": "Add reception status on purchase orders", diff --git a/purchase_reception_status/models/purchase_order.py b/purchase_reception_status/models/purchase_order.py index 5f9da770b55..f655aed4f8f 100644 --- a/purchase_reception_status/models/purchase_order.py +++ b/purchase_reception_status/models/purchase_order.py @@ -16,11 +16,9 @@ class PurchaseOrder(models.Model): ("received", "Fully Received"), ], compute="_compute_reception_status", - string="Reception Status", store=True, ) force_received = fields.Boolean( - string="Force Received", readonly=True, states={"done": [("readonly", False)]}, copy=False, diff --git a/purchase_reception_status/static/description/index.html b/purchase_reception_status/static/description/index.html index d9de347bbf3..8649b8a3181 100644 --- a/purchase_reception_status/static/description/index.html +++ b/purchase_reception_status/static/description/index.html @@ -3,7 +3,7 @@ - + Purchase Reception Status -
        -

        Purchase Reception Status

        +
        + + +Odoo Community Association + +
        +

        Purchase Reception Status

        -

        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 field Receiption Status on purchase orders. On a confirmed purchase order, it can have 3 different values:

          @@ -390,14 +396,14 @@

          Purchase Reception Status

        -

        Usage

        +

        Usage

        If you are part of the Purchase Manager group, you can force a confirmed purchase order to Full Received status: you should first lock the order, then check the field Force Received located in the Other Information tab.

        -

        Bug Tracker

        +

        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 @@ -405,24 +411,26 @@

        Bug Tracker

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

        -

        Credits

        +

        Credits

        -

        Authors

        +

        Authors

        • Akretion
        -

        Maintainers

        +

        Maintainers

        This module is maintained by the OCA.

        -Odoo Community Association + +Odoo Community Association +

        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.

        @@ -433,5 +441,6 @@

        Maintainers

        +
        From 9de581ddb5109ca019f64af7a3487c051e173021 Mon Sep 17 00:00:00 2001 From: AaronHForgeFlow Date: Wed, 10 Sep 2025 16:54:40 +0200 Subject: [PATCH 38/43] [MIG] purchase_reception_status: Migration to v18 --- purchase_reception_status/README.rst | 16 +++----- purchase_reception_status/__manifest__.py | 2 +- .../static/description/index.html | 41 ++++++++----------- .../tests/test_purchase_reception_status.py | 3 +- 4 files changed, 25 insertions(+), 37 deletions(-) diff --git a/purchase_reception_status/README.rst b/purchase_reception_status/README.rst index 873987370b8..2619825a6bc 100644 --- a/purchase_reception_status/README.rst +++ b/purchase_reception_status/README.rst @@ -1,7 +1,3 @@ -.. image:: https://odoo-community.org/readme-banner-image - :target: https://odoo-community.org/get-involved?utm_source=readme - :alt: Odoo Community Association - ========================= Purchase Reception Status ========================= @@ -17,17 +13,17 @@ Purchase Reception Status .. |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/license-AGPL--3-blue.png +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png :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_reception_status + :target: https://github.com/OCA/purchase-workflow/tree/18.0/purchase_reception_status :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_reception_status + :target: https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-purchase_reception_status :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| @@ -58,7 +54,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. @@ -97,6 +93,6 @@ Current `maintainer `__: |maintainer-alexis-via| -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_reception_status/__manifest__.py b/purchase_reception_status/__manifest__.py index 5edd0f77ff9..f62e1c0b5b3 100644 --- a/purchase_reception_status/__manifest__.py +++ b/purchase_reception_status/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Purchase Reception Status", - "version": "17.0.1.0.0", + "version": "18.0.1.0.0", "category": "Purchases", "license": "AGPL-3", "summary": "Add reception status on purchase orders (OCA logic)", diff --git a/purchase_reception_status/static/description/index.html b/purchase_reception_status/static/description/index.html index 35b24c85775..03bdc458805 100644 --- a/purchase_reception_status/static/description/index.html +++ b/purchase_reception_status/static/description/index.html @@ -3,16 +3,15 @@ -README.rst +Purchase Reception Status -
        +
        +

        Purchase Reception Status

        - - -Odoo Community Association - -
        -

        Purchase Reception Status

        -

        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 field Receiption Status on purchase orders. On a confirmed purchase order, it can have 3 different values:

          @@ -396,51 +390,48 @@

          Purchase Reception Status

        -

        Usage

        +

        Usage

        If you are part of the Purchase Manager group, you can force a confirmed purchase order to Full Received status: you should first lock the order, then check the field Force Received located in the Other Information tab.

        -

        Bug Tracker

        +

        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.

        -

        Credits

        +

        Credits

        -

        Authors

        +

        Authors

        • Akretion
        -

        Maintainers

        +

        Maintainers

        This module is maintained by the OCA.

        - -Odoo Community Association - +Odoo Community Association

        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.

        Current maintainer:

        alexis-via

        -

        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_reception_status/tests/test_purchase_reception_status.py b/purchase_reception_status/tests/test_purchase_reception_status.py index de5a6e1704b..661c43b5916 100644 --- a/purchase_reception_status/tests/test_purchase_reception_status.py +++ b/purchase_reception_status/tests/test_purchase_reception_status.py @@ -19,9 +19,10 @@ def setUpClass(cls): cls.product_1 = cls.env["product.product"].create( { "name": "Test Product 1", - "type": "product", + "type": "consu", "purchase_method": "receive", "list_price": 100.0, + "is_storable": True, } ) From db95cd0750dd979e2818887642eedda12bae1b1a Mon Sep 17 00:00:00 2001 From: oca-ci Date: Tue, 16 Sep 2025 09:05:15 +0000 Subject: [PATCH 39/43] [UPD] Update purchase_reception_status.pot --- .../i18n/purchase_reception_status.pot | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/purchase_reception_status/i18n/purchase_reception_status.pot b/purchase_reception_status/i18n/purchase_reception_status.pot index cde69a8597b..ee494daadf4 100644 --- a/purchase_reception_status/i18n/purchase_reception_status.pot +++ b/purchase_reception_status/i18n/purchase_reception_status.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 17.0\n" +"Project-Id-Version: Odoo Server 18.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -57,3 +57,11 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:purchase_reception_status.view_purchase_order_filter msgid "Receipt Status" msgstr "" + +#. module: purchase_reception_status +#: model:ir.model.fields,help:purchase_reception_status.field_purchase_order__receipt_status +msgid "" +"Red: Late\n" +" Orange: To process today\n" +" Green: On time" +msgstr "" From f2aa6c7884e3588496a997755da58c8356378039 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 16 Sep 2025 09:11:23 +0000 Subject: [PATCH 40/43] [BOT] post-merge updates --- purchase_reception_status/README.rst | 8 +++- .../static/description/index.html | 39 ++++++++++++------- 2 files changed, 30 insertions(+), 17 deletions(-) diff --git a/purchase_reception_status/README.rst b/purchase_reception_status/README.rst index 2619825a6bc..1d8e5ec95dc 100644 --- a/purchase_reception_status/README.rst +++ b/purchase_reception_status/README.rst @@ -1,3 +1,7 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + ========================= Purchase Reception Status ========================= @@ -7,13 +11,13 @@ Purchase Reception Status !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:ae44504fa319b3635d25e397e9d2fcbf84b8f051186e8c1ce9e6b288ee99fa9b + !! source digest: sha256:ffb8b08e10dfeca5608fead37d119b50b8dbbf441adf1e2a9d6af8ceca4122c2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |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-AGPL--3-blue.png +.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png :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 diff --git a/purchase_reception_status/static/description/index.html b/purchase_reception_status/static/description/index.html index 03bdc458805..47a6d92feeb 100644 --- a/purchase_reception_status/static/description/index.html +++ b/purchase_reception_status/static/description/index.html @@ -3,15 +3,16 @@ -Purchase Reception Status +README.rst -
        -

        Purchase Reception Status

        +
        + + +Odoo Community Association + +
        +

        Purchase Reception Status

        -

        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 field Receiption Status on purchase orders. On a confirmed purchase order, it can have 3 different values:

          @@ -390,14 +396,14 @@

          Purchase Reception Status

        -

        Usage

        +

        Usage

        If you are part of the Purchase Manager group, you can force a confirmed purchase order to Full Received status: you should first lock the order, then check the field Force Received located in the Other Information tab.

        -

        Bug Tracker

        +

        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 @@ -405,24 +411,26 @@

        Bug Tracker

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

        -

        Credits

        +

        Credits

        -

        Authors

        +

        Authors

        • Akretion
        -

        Maintainers

        +

        Maintainers

        This module is maintained by the OCA.

        -Odoo Community Association + +Odoo Community Association +

        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.

        @@ -433,5 +441,6 @@

        Maintainers

        +
        From b954cdd30994685c2aed04b002b6cbf3183d41ee Mon Sep 17 00:00:00 2001 From: oca-ci Date: Tue, 16 Sep 2025 10:50:26 +0000 Subject: [PATCH 41/43] [UPD] Update purchase_reception_status.pot --- purchase_reception_status/i18n/purchase_reception_status.pot | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/purchase_reception_status/i18n/purchase_reception_status.pot b/purchase_reception_status/i18n/purchase_reception_status.pot index ee494daadf4..d26504cfc61 100644 --- a/purchase_reception_status/i18n/purchase_reception_status.pot +++ b/purchase_reception_status/i18n/purchase_reception_status.pot @@ -27,9 +27,8 @@ msgstr "" #. module: purchase_reception_status #: model:ir.model.fields,help:purchase_reception_status.field_purchase_order__force_received msgid "" -"If true, the reception status will be forced to Fully Received, even if some" -" lines are not fully received. To be able to modify this field, you must " -"first lock the order." +"If true, the order is marked forced only when all lines are fully received " +"and at least one line was manually forced." msgstr "" #. module: purchase_reception_status From 20e5a7b07a96b0faf6259bfc291bde263b5ab333 Mon Sep 17 00:00:00 2001 From: mymage Date: Wed, 17 Sep 2025 09:05:45 +0000 Subject: [PATCH 42/43] Translated using Weblate (Italian) Currently translated at 100.0% (8 of 8 strings) Translation: purchase-workflow-18.0/purchase-workflow-18.0-purchase_reception_status Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-purchase_reception_status/it/ --- purchase_reception_status/i18n/it.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/purchase_reception_status/i18n/it.po b/purchase_reception_status/i18n/it.po index 7f7465ce868..bc0a69f80e6 100644 --- a/purchase_reception_status/i18n/it.po +++ b/purchase_reception_status/i18n/it.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2024-03-19 15:41+0000\n" +"PO-Revision-Date: 2025-09-17 10:36+0000\n" "Last-Translator: mymage \n" "Language-Team: none\n" "Language: it\n" @@ -14,12 +14,12 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.17\n" +"X-Generator: Weblate 5.10.4\n" #. module: purchase_reception_status #: model:ir.model.fields,field_description:purchase_reception_status.field_purchase_order__force_received msgid "Force Received" -msgstr "Forza Ricevuto" +msgstr "Forza a ricevuto" #. module: purchase_reception_status #: model:ir.model.fields.selection,name:purchase_reception_status.selection__purchase_order__reception_status__received @@ -62,4 +62,4 @@ msgstr "Ordine di acquisto" #: model:ir.model.fields,field_description:purchase_reception_status.field_purchase_order__reception_status #: model_terms:ir.ui.view,arch_db:purchase_reception_status.view_purchase_order_filter msgid "Reception Status" -msgstr "Stato Ricezione" +msgstr "Stato ricezione" From 669c4a4706334fd5becaafd19fceeaa0d1c0ebb1 Mon Sep 17 00:00:00 2001 From: sbiosca-s73 Date: Fri, 9 Jan 2026 13:12:32 +0100 Subject: [PATCH 43/43] [MIG] purchase_reception_status: Migration to 19.0 --- purchase_reception_status/README.rst | 25 ++++++++++--------- purchase_reception_status/__manifest__.py | 4 +-- .../models/purchase_order.py | 10 +++++--- purchase_reception_status/readme/USAGE.md | 3 ++- .../static/description/index.html | 11 ++++---- .../tests/test_purchase_reception_status.py | 8 +++--- .../views/purchase_order.xml | 25 +++---------------- 7 files changed, 37 insertions(+), 49 deletions(-) diff --git a/purchase_reception_status/README.rst b/purchase_reception_status/README.rst index 1d8e5ec95dc..afff9b9d7e5 100644 --- a/purchase_reception_status/README.rst +++ b/purchase_reception_status/README.rst @@ -21,13 +21,13 @@ Purchase Reception Status :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/18.0/purchase_reception_status + :target: https://github.com/OCA/purchase-workflow/tree/19.0/purchase_reception_status :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-18-0/purchase-workflow-18-0-purchase_reception_status + :target: https://translation.odoo-community.org/projects/purchase-workflow-19-0/purchase-workflow-19-0-purchase_reception_status :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=18.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/purchase-workflow&target_branch=19.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -35,9 +35,9 @@ Purchase Reception Status This module adds a field *Receiption Status* on purchase orders. On a confirmed purchase order, it can have 3 different values: -- Nothing Received -- Partially Received -- Fully Received +- Nothing Received +- Partially Received +- Fully Received **Table of contents** @@ -49,8 +49,9 @@ Usage If you are part of the *Purchase Manager* group, you can force a confirmed purchase order to **Full Received** status: you should first -*lock* the order, then check the field **Force Received** located in the -*Other Information* tab. +*lock* the order (to enable locking, ensure the 'Locked' setting is +checked in the Purchase configuration), then check the field **Force +Received** located in the *Other Information* tab. Bug Tracker =========== @@ -58,7 +59,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. @@ -73,8 +74,8 @@ Authors Contributors ------------ -- Alexis de Lattre -- Urvisha Desai +- Alexis de Lattre +- Urvisha Desai Maintainers ----------- @@ -97,6 +98,6 @@ Current `maintainer `__: |maintainer-alexis-via| -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_reception_status/__manifest__.py b/purchase_reception_status/__manifest__.py index f62e1c0b5b3..cf30ff8fdb4 100644 --- a/purchase_reception_status/__manifest__.py +++ b/purchase_reception_status/__manifest__.py @@ -4,14 +4,14 @@ { "name": "Purchase Reception Status", - "version": "18.0.1.0.0", + "version": "19.0.1.0.0", "category": "Purchases", "license": "AGPL-3", "summary": "Add reception status on purchase orders (OCA logic)", "author": "Akretion,Odoo Community Association (OCA)", "maintainers": ["alexis-via"], "website": "https://github.com/OCA/purchase-workflow", - "depends": ["purchase"], + "depends": ["purchase_stock"], "data": ["views/purchase_order.xml"], "installable": True, } diff --git a/purchase_reception_status/models/purchase_order.py b/purchase_reception_status/models/purchase_order.py index 109cee2347d..94173f257dc 100644 --- a/purchase_reception_status/models/purchase_order.py +++ b/purchase_reception_status/models/purchase_order.py @@ -27,13 +27,17 @@ class PurchaseOrder(models.Model): ) @api.depends( - "state", "force_received", "order_line.qty_received", "order_line.product_qty" + "state", + "force_received", + "locked", + "order_line.qty_received", + "order_line.product_qty", ) def _compute_oca_receipt_status(self): - prec = self.env["decimal.precision"].precision_get("Product Unit of Measure") + prec = self.env["decimal.precision"].precision_get("Product Unit") for order in self: status = "pending" - if order.state in ("purchase", "done"): + if order.state == "purchase" or order.locked: if order.force_received: status = "full" elif all( diff --git a/purchase_reception_status/readme/USAGE.md b/purchase_reception_status/readme/USAGE.md index a4bfe4f37c9..c676e7b9532 100644 --- a/purchase_reception_status/readme/USAGE.md +++ b/purchase_reception_status/readme/USAGE.md @@ -1,4 +1,5 @@ If you are part of the *Purchase Manager* group, you can force a confirmed purchase order to **Full Received** status: you should first -*lock* the order, then check the field **Force Received** located in the +*lock* the order (to enable locking, ensure the 'Locked' setting is checked +in the Purchase configuration), then check the field **Force Received** located in the *Other Information* tab. diff --git a/purchase_reception_status/static/description/index.html b/purchase_reception_status/static/description/index.html index 47a6d92feeb..4398b01975d 100644 --- a/purchase_reception_status/static/description/index.html +++ b/purchase_reception_status/static/description/index.html @@ -374,7 +374,7 @@

        Purchase Reception Status

        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:ffb8b08e10dfeca5608fead37d119b50b8dbbf441adf1e2a9d6af8ceca4122c2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

        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 field Receiption Status on purchase orders. On a confirmed purchase order, it can have 3 different values:

          @@ -399,15 +399,16 @@

          Purchase Reception Status

          Usage

          If you are part of the Purchase Manager group, you can force a confirmed purchase order to Full Received status: you should first -lock the order, then check the field Force Received located in the -Other Information tab.

          +lock the order (to enable locking, ensure the ‘Locked’ setting is +checked in the Purchase configuration), then check the field Force +Received located in the Other Information tab.

          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.

          @@ -436,7 +437,7 @@

          Maintainers

          promote its widespread use.

          Current maintainer:

          alexis-via

          -

          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_reception_status/tests/test_purchase_reception_status.py b/purchase_reception_status/tests/test_purchase_reception_status.py index 661c43b5916..bf6f3cb8327 100644 --- a/purchase_reception_status/tests/test_purchase_reception_status.py +++ b/purchase_reception_status/tests/test_purchase_reception_status.py @@ -38,7 +38,7 @@ def test_01_receipt_status_functionality(self): "product_id": self.product_1.id, "name": self.product_1.name, "product_qty": 10.0, - "product_uom": self.product_1.uom_po_id.id, + "product_uom_id": self.product_1.uom_id.id, "price_unit": 100.0, "date_planned": fields.Date.today(), } @@ -47,7 +47,7 @@ def test_01_receipt_status_functionality(self): self.assertEqual(po.receipt_status, "pending") pol.qty_received = 5.0 self.assertEqual(po.receipt_status, "partial") - po.button_done() + po.button_lock() po.force_received = True self.assertEqual(po.receipt_status, "full") @@ -63,7 +63,7 @@ def test_02_receipt_status_draft_state(self): "product_id": self.product_1.id, "name": self.product_1.name, "product_qty": 10.0, - "product_uom": self.product_1.uom_po_id.id, + "product_uom_id": self.product_1.uom_id.id, "price_unit": 100.0, "date_planned": fields.Date.today(), } @@ -82,7 +82,7 @@ def test_03_receipt_status_over_received(self): "product_id": self.product_1.id, "name": self.product_1.name, "product_qty": 10.0, - "product_uom": self.product_1.uom_po_id.id, + "product_uom_id": self.product_1.uom_id.id, "price_unit": 100.0, "date_planned": fields.Date.today(), } diff --git a/purchase_reception_status/views/purchase_order.xml b/purchase_reception_status/views/purchase_order.xml index e0912de6d1f..a0396312b50 100644 --- a/purchase_reception_status/views/purchase_order.xml +++ b/purchase_reception_status/views/purchase_order.xml @@ -11,16 +11,12 @@ - @@ -41,21 +37,6 @@ - - received_status.purchase.order.tree - purchase.order - - - - - - - received_status.purchase.order.search purchase.order @@ -74,7 +55,7 @@ /> - +