diff --git a/purchase_open_qty/README.rst b/purchase_open_qty/README.rst new file mode 100644 index 00000000000..12b68f330f0 --- /dev/null +++ b/purchase_open_qty/README.rst @@ -0,0 +1,102 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +================= +Purchase Open Qty +================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:3e6c7c852852d0ed233ea77f74bfe8b1d81bccfe42b4fcef44b10a7370a4037f + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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 + :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/19.0/purchase_open_qty + :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-19-0/purchase-workflow-19-0-purchase_open_qty + :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=19.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows purchase users to identify what are the purchase +orders that currently have quantities pending to invoice or to receive. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to go to Purchase Orders and select the new +filters in the search. + +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 +------- + +* ForgeFlow + +Contributors +------------ + +- Miquel Raïch +- Andreas Dian Sukarno Putro +- Kitti Upariphutthiphong +- Eric Antones +- Juany Davila +- `Tecnativa `__: + + - Carlos Roca + +- `Trobz `__: + + - Son Ho sonhd@trobz.com + +- `Glo Networks `__: + + - Elliott Bristow elliott@glo.systems + +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. + +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_open_qty/__init__.py b/purchase_open_qty/__init__.py new file mode 100644 index 00000000000..a2aff3e437a --- /dev/null +++ b/purchase_open_qty/__init__.py @@ -0,0 +1,4 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import models +from .init_hook import pre_init_hook diff --git a/purchase_open_qty/__manifest__.py b/purchase_open_qty/__manifest__.py new file mode 100644 index 00000000000..4993a34a0e1 --- /dev/null +++ b/purchase_open_qty/__manifest__.py @@ -0,0 +1,25 @@ +# Copyright 2017 ForgeFlow S.L. +# (http://www.forgeflow.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +{ + "name": "Purchase Open Qty", + "summary": "Allows to identify the purchase orders that have quantities " + "pending to invoice or to receive.", + "version": "19.0.1.0.0", + "author": "ForgeFlow, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/purchase-workflow", + "category": "Purchases", + "depends": [ + "purchase_stock", + "purchase_order_line_menu", + ], + "data": [ + "views/purchase_order_line_views.xml", + "views/purchase_order_views.xml", + ], + "pre_init_hook": "pre_init_hook", + "license": "AGPL-3", + "installable": True, + "application": False, +} diff --git a/purchase_open_qty/i18n/de.po b/purchase_open_qty/i18n/de.po new file mode 100644 index 00000000000..73ba975ff98 --- /dev/null +++ b/purchase_open_qty/i18n/de.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-24 07:53+0000\n" +"PO-Revision-Date: 2020-07-22 12:19+0000\n" +"Last-Translator: c2cdidier \n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\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_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "Ausstehende Menge zu verrechnen" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "Ausstehende Menge zu empfangen" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "Bestellung" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Bestellposition" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "Menge zu verrechnen" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "Menge zu empfangen" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "Nicht unterstützte Suche" diff --git a/purchase_open_qty/i18n/es.po b/purchase_open_qty/i18n/es.po new file mode 100644 index 00000000000..d2f2e93aecd --- /dev/null +++ b/purchase_open_qty/i18n/es.po @@ -0,0 +1,62 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +# Translators: +# OCA Transbot , 2017 +# Pedro M. Baeza , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-11-09 12:16+0000\n" +"PO-Revision-Date: 2022-11-09 13:21+0100\n" +"Last-Translator: Pedro M. Baeza , 2017\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 2.3\n" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "Cantidad pendiente de facturar" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "Cantidad pendiente de recibir" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "Orden de compra" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Linea pedido compra" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "Cantidad a facturar" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "Cantidad a recibir" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "Operador de búsqueda no soportado" diff --git a/purchase_open_qty/i18n/es_MX.po b/purchase_open_qty/i18n/es_MX.po new file mode 100644 index 00000000000..e7cf2386f7c --- /dev/null +++ b/purchase_open_qty/i18n/es_MX.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-24 07:53+0000\n" +"PO-Revision-Date: 2017-11-24 07:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/" +"es_MX/)\n" +"Language: es_MX\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_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Línea de orden de compra" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/es_PE.po b/purchase_open_qty/i18n/es_PE.po new file mode 100644 index 00000000000..e0029ef61e1 --- /dev/null +++ b/purchase_open_qty/i18n/es_PE.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +# Translators: +# Henry Garcia , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-24 07:53+0000\n" +"PO-Revision-Date: 2017-11-24 07:53+0000\n" +"Last-Translator: Henry Garcia , 2017\n" +"Language-Team: Spanish (Peru) (https://www.transifex.com/oca/teams/23907/" +"es_PE/)\n" +"Language: es_PE\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_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "Orden de compra" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Linea de orden de compra" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/fi.po b/purchase_open_qty/i18n/fi.po new file mode 100644 index 00000000000..4a0385a66e5 --- /dev/null +++ b/purchase_open_qty/i18n/fi.po @@ -0,0 +1,60 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-24 07:53+0000\n" +"PO-Revision-Date: 2017-11-24 07:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"Language: fi\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_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Ostotilausrivi" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/fr.po b/purchase_open_qty/i18n/fr.po new file mode 100644 index 00000000000..ed5d7c80aa0 --- /dev/null +++ b/purchase_open_qty/i18n/fr.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-24 07:53+0000\n" +"PO-Revision-Date: 2020-07-22 12:19+0000\n" +"Last-Translator: c2cdidier \n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\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" +"X-Generator: Weblate 3.10\n" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "Qté à facturer en attente" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "Qté à recevoir en attente" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "Bon de commande" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Ligne de commande d'achat" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "Qté à facturer" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "Qté à recevoir" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "Opération de recherche non supportée" diff --git a/purchase_open_qty/i18n/fr_BE.po b/purchase_open_qty/i18n/fr_BE.po new file mode 100644 index 00000000000..1e148d15fbd --- /dev/null +++ b/purchase_open_qty/i18n/fr_BE.po @@ -0,0 +1,64 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-03 03:48+0000\n" +"PO-Revision-Date: 2021-02-18 11:45+0000\n" +"Last-Translator: Yves Le Doeuff \n" +"Language-Team: French (Belgium) (https://www.transifex.com/oca/teams/23907/" +"fr_BE/)\n" +"Language: fr_BE\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 4.3.2\n" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#, fuzzy +msgid "Pending Qty to Bill" +msgstr "Quantité en attente de facturation" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#, fuzzy +msgid "Pending Qty to Receive" +msgstr "Quantité en attente de livraison" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "Commande fournisseur" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Ligne de commande d'achat" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "Quantité à facturer" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "Quantité à recevoir" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/gl.po b/purchase_open_qty/i18n/gl.po new file mode 100644 index 00000000000..3102f9a673a --- /dev/null +++ b/purchase_open_qty/i18n/gl.po @@ -0,0 +1,60 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-24 07:53+0000\n" +"PO-Revision-Date: 2017-11-24 07:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" +"Language: gl\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_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "Orde de compra" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/hr.po b/purchase_open_qty/i18n/hr.po new file mode 100644 index 00000000000..93f71ed3f01 --- /dev/null +++ b/purchase_open_qty/i18n/hr.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-03 03:48+0000\n" +"PO-Revision-Date: 2018-03-03 03:48+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "Obračun u tijeku" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "Zaprimanje u tijeku" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "Nabavni nalog" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Stavka naloga za nabavu" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "Kol za račun" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "Kol za zaprimanje" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/it.po b/purchase_open_qty/i18n/it.po new file mode 100644 index 00000000000..f8a2520f27a --- /dev/null +++ b/purchase_open_qty/i18n/it.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-24 07:53+0000\n" +"PO-Revision-Date: 2024-06-13 18:39+0000\n" +"Last-Translator: Sergio Corato \n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\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 4.17\n" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "Ha q.tà in attesa di fattura" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "Ha q.tà da ricevere in attesa" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "Ordine di acquisto" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Riga ordine di acquisto" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "Qty da Fatturare" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "Qty da Ricevere" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "Operatore di ricerca non supportato" diff --git a/purchase_open_qty/i18n/nl.po b/purchase_open_qty/i18n/nl.po new file mode 100644 index 00000000000..4934ea80551 --- /dev/null +++ b/purchase_open_qty/i18n/nl.po @@ -0,0 +1,60 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +# Translators: +# Erwin van der Ploeg , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-24 07:53+0000\n" +"PO-Revision-Date: 2017-11-24 07:53+0000\n" +"Last-Translator: Erwin van der Ploeg , 2017\n" +"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" +"Language: nl\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_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "Inkooporder" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/nl_NL.po b/purchase_open_qty/i18n/nl_NL.po new file mode 100644 index 00000000000..d9df616aa45 --- /dev/null +++ b/purchase_open_qty/i18n/nl_NL.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-24 07:53+0000\n" +"PO-Revision-Date: 2017-11-24 07:53+0000\n" +"Last-Translator: Peter Hageman , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\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_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "Inkooporder" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Inkooporderregel" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/pt_BR.po b/purchase_open_qty/i18n/pt_BR.po new file mode 100644 index 00000000000..ff210ee8ccc --- /dev/null +++ b/purchase_open_qty/i18n/pt_BR.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-24 07:53+0000\n" +"PO-Revision-Date: 2017-11-24 07:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" +"teams/23907/pt_BR/)\n" +"Language: pt_BR\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_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "Ordem de Compra" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Linha da Ordem de Compra" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/pt_PT.po b/purchase_open_qty/i18n/pt_PT.po new file mode 100644 index 00000000000..ce091360f03 --- /dev/null +++ b/purchase_open_qty/i18n/pt_PT.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-24 07:53+0000\n" +"PO-Revision-Date: 2017-11-24 07:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/" +"teams/23907/pt_PT/)\n" +"Language: pt_PT\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_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Linha de Encomenda de Compra" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/purchase_open_qty.pot b/purchase_open_qty/i18n/purchase_open_qty.pot new file mode 100644 index 00000000000..e10f88f5042 --- /dev/null +++ b/purchase_open_qty/i18n/purchase_open_qty.pot @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.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_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/ro.po b/purchase_open_qty/i18n/ro.po new file mode 100644 index 00000000000..34cf2aece9a --- /dev/null +++ b/purchase_open_qty/i18n/ro.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-24 07:53+0000\n" +"PO-Revision-Date: 2017-11-24 07:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" +"2:1));\n" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "Comandă achiziție" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Linie comandă achiziție" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/sl.po b/purchase_open_qty/i18n/sl.po new file mode 100644 index 00000000000..3ce3686f5ad --- /dev/null +++ b/purchase_open_qty/i18n/sl.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-24 07:53+0000\n" +"PO-Revision-Date: 2017-11-24 07:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || " +"n%100==4 ? 2 : 3);\n" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "Nabavni nalog" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Postavka nabavnega naloga" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/vi_VN.po b/purchase_open_qty/i18n/vi_VN.po new file mode 100644 index 00000000000..cbcd84823e6 --- /dev/null +++ b/purchase_open_qty/i18n/vi_VN.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-24 07:53+0000\n" +"PO-Revision-Date: 2017-11-24 07:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Vietnamese (Viet Nam) (https://www.transifex.com/oca/" +"teams/23907/vi_VN/)\n" +"Language: vi_VN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "Đơn hàng Mua" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/zh_CN.po b/purchase_open_qty/i18n/zh_CN.po new file mode 100644 index 00000000000..02071db138e --- /dev/null +++ b/purchase_open_qty/i18n/zh_CN.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2020-03-23 13:13+0000\n" +"Last-Translator: Dong \n" +"Language-Team: none\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 3.10\n" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_invoice +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "待开票数量" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__pending_qty_to_receive +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model_terms:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Receive" +msgstr "待收货数量" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order +msgid "Purchase Order" +msgstr "采购订单" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "采购订单明细" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +msgid "Qty to Bill" +msgstr "待开票数量" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_receive +msgid "Qty to Receive" +msgstr "待收货数量" + +#. module: purchase_open_qty +#. odoo-python +#: code:addons/purchase_open_qty/models/purchase_order.py:0 +msgid "Unsupported search operator" +msgstr "不支持的搜索运算符" diff --git a/purchase_open_qty/init_hook.py b/purchase_open_qty/init_hook.py new file mode 100644 index 00000000000..6457934c53a --- /dev/null +++ b/purchase_open_qty/init_hook.py @@ -0,0 +1,90 @@ +# Copyright 2017 ForgeFlow S.L. +# (http://www.forgeflow.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +import logging + +logger = logging.getLogger(__name__) + + +def pre_init_hook(env): + """ + The objective of this hook is to speed up the installation + of the module on an existing Odoo instance. + """ + store_field_qty_to_receive_and_invoice(env) + + +def store_field_qty_to_receive_and_invoice(env): + env.cr.execute( + """SELECT column_name + FROM information_schema.columns + WHERE table_name='purchase_order_line' AND + column_name='qty_to_receive'""" + ) + if not env.cr.fetchone(): + logger.info("Creating field qty_to_receive on purchase_order_line") + env.cr.execute( + """ + ALTER TABLE purchase_order_line ADD COLUMN qty_to_receive float; + COMMENT ON COLUMN purchase_order_line.qty_to_receive IS + 'Qty to Receive'; + """ + ) + + env.cr.execute( + """SELECT column_name + FROM information_schema.columns + WHERE table_name='purchase_order_line' AND + column_name='qty_to_invoice'""" + ) + if not env.cr.fetchone(): + logger.info("Creating field qty_to_invoice on purchase_order_line") + env.cr.execute( + """ + ALTER TABLE purchase_order_line ADD COLUMN qty_to_invoice float; + COMMENT ON COLUMN purchase_order_line.qty_to_invoice IS + 'Qty to Bill'; + """ + ) + + logger.info( + "Computing values for fields qty_to_receive and qty_to_invoice" + " on purchase_order_line" + ) + env.cr.execute( + """ + UPDATE purchase_order_line pol + SET qty_to_invoice = pol.qty_received - pol.qty_invoiced + FROM product_product p + JOIN product_template t ON p.product_tmpl_id = t.id + WHERE t.purchase_method = 'receive' AND pol.product_id = p.id + """ + ) + env.cr.execute( + """ + UPDATE purchase_order_line pol + SET qty_to_invoice = pol.product_qty - pol.qty_invoiced + FROM product_product p + JOIN product_template t ON p.product_tmpl_id = t.id + WHERE t.purchase_method != 'receive' AND pol.product_id = p.id + """ + ) + env.cr.execute( + """ + UPDATE purchase_order_line pol + SET qty_to_receive = + CASE + WHEN pt.type = 'service' THEN pol.product_qty - pol.qty_received + ELSE ( + SELECT COALESCE(SUM(sm.product_uom_qty), 0) + FROM stock_move sm + WHERE sm.purchase_line_id = pol.id + AND sm.state NOT IN ('cancel', 'done') + ) + END + FROM product_product pp + JOIN product_template pt ON pt.id = pp.product_tmpl_id + WHERE pp.id = pol.product_id + """ + ) diff --git a/purchase_open_qty/models/__init__.py b/purchase_open_qty/models/__init__.py new file mode 100644 index 00000000000..0c62a0871de --- /dev/null +++ b/purchase_open_qty/models/__init__.py @@ -0,0 +1,4 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import purchase_order +from . import purchase_order_line diff --git a/purchase_open_qty/models/purchase_order.py b/purchase_open_qty/models/purchase_order.py new file mode 100644 index 00000000000..a6aba6cd9f2 --- /dev/null +++ b/purchase_open_qty/models/purchase_order.py @@ -0,0 +1,71 @@ +# Copyright 2017 ForgeFlow S.L. +# (http://www.forgeflow.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from odoo import api, fields, models +from odoo.orm.fields import Domain +from odoo.tools import OrderedSet, float_is_zero + + +class PurchaseOrder(models.Model): + _inherit = "purchase.order" + + def _compute_qty_to_invoice(self): + dp = self.env["decimal.precision"].precision_get("Product Unit of Measure") + for po in self: + qty_to_invoice = sum(po.mapped("order_line.qty_to_invoice")) + po.pending_qty_to_invoice = not float_is_zero( + qty_to_invoice, precision_digits=dp + ) + po.qty_to_invoice = qty_to_invoice + + def _compute_qty_to_receive(self): + for po in self: + qty_to_receive = sum(po.mapped("order_line.qty_to_receive")) + po.pending_qty_to_receive = qty_to_receive > 0.0 + po.qty_to_receive = qty_to_receive + + @api.model + def _search_pending_qty_to_receive(self, operator, value): + if operator not in ("in", "not in") or value != OrderedSet([True]): + return NotImplemented + po_line_obj = self.env["purchase.order.line"] + po_lines = po_line_obj.search([("qty_to_receive", ">", 0.0)]) + orders = po_lines.mapped("order_id") + if value: + return Domain("id", "in", orders.ids) + else: + return Domain("id", "not in", orders.ids) + + @api.model + def _search_pending_qty_to_invoice(self, operator, value): + if operator not in ("in", "not in") or value != OrderedSet([True]): + return NotImplemented + po_line_obj = self.env["purchase.order.line"] + po_lines = po_line_obj.search([("qty_to_invoice", ">", 0.0)]) + orders = po_lines.mapped("order_id") + if value: + return Domain("id", "in", orders.ids) + else: + return Domain("id", "not in", orders.ids) + + qty_to_invoice = fields.Float( + compute="_compute_qty_to_invoice", + string="Qty to Bill", + default=0.0, + ) + pending_qty_to_invoice = fields.Boolean( + compute="_compute_qty_to_invoice", + search="_search_pending_qty_to_invoice", + string="Pending Qty to Bill", + ) + qty_to_receive = fields.Float( + compute="_compute_qty_to_receive", + string="Qty to Receive", + default=0.0, + ) + pending_qty_to_receive = fields.Boolean( + compute="_compute_qty_to_receive", + search="_search_pending_qty_to_receive", + string="Pending Qty to Receive", + ) diff --git a/purchase_open_qty/models/purchase_order_line.py b/purchase_open_qty/models/purchase_order_line.py new file mode 100644 index 00000000000..37c4b284d7d --- /dev/null +++ b/purchase_open_qty/models/purchase_order_line.py @@ -0,0 +1,42 @@ +# Copyright 2017 ForgeFlow S.L. +# (http://www.forgeflow.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from odoo import api, fields, models + + +class PurchaseOrderLine(models.Model): + _inherit = "purchase.order.line" + + @api.depends( + "move_ids.state", + "move_ids.product_uom", + "move_ids.product_uom_qty", + "product_qty", + "qty_received", + ) + def _compute_qty_to_receive(self): + """Compute the quantity for which there are pending stock moves""" + service_lines = self.filtered(lambda line: line.product_id.type == "service") + for line in self - service_lines: + total = 0.0 + for move in line.move_ids.filtered( + lambda m: m.state not in ("cancel", "done") + ): + if move.product_uom != line.product_uom_id: + total += move.product_uom._compute_quantity( + move.product_uom_qty, line.product_uom_id + ) + else: + total += move.product_uom_qty + line.qty_to_receive = total + for line in service_lines: + line.qty_to_receive = line.product_qty - line.qty_received + + qty_to_receive = fields.Float( + compute="_compute_qty_to_receive", + digits="Product Unit of Measure", + copy=False, + string="Qty to Receive", + store=True, + ) diff --git a/purchase_open_qty/pyproject.toml b/purchase_open_qty/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/purchase_open_qty/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/purchase_open_qty/readme/CONTRIBUTORS.md b/purchase_open_qty/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..4006c7f7c0e --- /dev/null +++ b/purchase_open_qty/readme/CONTRIBUTORS.md @@ -0,0 +1,11 @@ +- Miquel Raïch \<\> +- Andreas Dian Sukarno Putro \<\> +- Kitti Upariphutthiphong \<\> +- Eric Antones \<\> +- Juany Davila \<\> +- [Tecnativa](https://www.tecnativa.com): + - Carlos Roca +- [Trobz](https://trobz.com): + - Son Ho +- [Glo Networks](https://glo.systems): + - Elliott Bristow diff --git a/purchase_open_qty/readme/DESCRIPTION.md b/purchase_open_qty/readme/DESCRIPTION.md new file mode 100644 index 00000000000..58fa3c5cb96 --- /dev/null +++ b/purchase_open_qty/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module allows purchase users to identify what are the purchase +orders that currently have quantities pending to invoice or to receive. diff --git a/purchase_open_qty/readme/USAGE.md b/purchase_open_qty/readme/USAGE.md new file mode 100644 index 00000000000..0b1b90172d6 --- /dev/null +++ b/purchase_open_qty/readme/USAGE.md @@ -0,0 +1,2 @@ +To use this module, you need to go to Purchase Orders and select the new +filters in the search. diff --git a/purchase_open_qty/static/description/icon.png b/purchase_open_qty/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/purchase_open_qty/static/description/icon.png differ diff --git a/purchase_open_qty/static/description/index.html b/purchase_open_qty/static/description/index.html new file mode 100644 index 00000000000..737dbcfd985 --- /dev/null +++ b/purchase_open_qty/static/description/index.html @@ -0,0 +1,452 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

Purchase Open Qty

+ +

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

+

This module allows purchase users to identify what are the purchase +orders that currently have quantities pending to invoice or to receive.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to go to Purchase Orders and select the new +filters in the search.

+
+
+

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

+
    +
  • ForgeFlow
  • +
+
+
+

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.

+

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_open_qty/tests/__init__.py b/purchase_open_qty/tests/__init__.py new file mode 100644 index 00000000000..8fba0b937b5 --- /dev/null +++ b/purchase_open_qty/tests/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import test_purchase_open_qty diff --git a/purchase_open_qty/tests/test_purchase_open_qty.py b/purchase_open_qty/tests/test_purchase_open_qty.py new file mode 100644 index 00000000000..8efbedf4c16 --- /dev/null +++ b/purchase_open_qty/tests/test_purchase_open_qty.py @@ -0,0 +1,217 @@ +# Copyright 2017 ForgeFlow S.L. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo.fields import Datetime +from odoo.tests.common import TransactionCase + + +class TestPurchaseOpenQty(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.purchase_order_model = cls.env["purchase.order"] + purchase_order_line_model = cls.env["purchase.order.line"] + partner_model = cls.env["res.partner"] + prod_model = cls.env["product.product"] + analytic_account_model = cls.env["account.analytic.account"] + + # partners + pa_dict = {"name": "Partner 1"} + cls.partner = partner_model.sudo().create(pa_dict) + pa_dict2 = {"name": "Partner 2"} + cls.partner2 = partner_model.sudo().create(pa_dict2) + + # account + ac_dict = { + "name": "analytic account 1", + "plan_id": cls.env.ref("analytic.analytic_plan_projects").id, + } + cls.analytic_account_1 = analytic_account_model.sudo().create(ac_dict) + + # Purchase Order Num 1 + po_dict = {"partner_id": cls.partner.id} + cls.purchase_order_1 = cls.purchase_order_model.create(po_dict) + uom_id = prod_model.uom_id.search([("name", "=", "Units")], limit=1).id + pr_dict = { + "name": "Product Test", + "uom_id": uom_id, + "purchase_method": "purchase", + } + cls.product = prod_model.sudo().create(pr_dict) + pl_dict1 = { + "date_planned": Datetime.now(), + "name": "PO01", + "order_id": cls.purchase_order_1.id, + "product_id": cls.product.id, + "product_uom": uom_id, + "price_unit": 1.0, + "product_qty": 5.0, + "analytic_distribution": {cls.analytic_account_1.id: 100}, + } + cls.purchase_order_line_1 = purchase_order_line_model.sudo().create(pl_dict1) + cls.purchase_order_1.button_confirm() + + # Purchase Order Num 2 + po_dict2 = {"partner_id": cls.partner2.id} + cls.purchase_order_2 = cls.purchase_order_model.create(po_dict2) + pr_dict2 = { + "name": "Product Test 2", + "uom_id": uom_id, + "purchase_method": "receive", + } + cls.product2 = prod_model.sudo().create(pr_dict2) + pl_dict2 = { + "date_planned": Datetime.now(), + "name": "PO02", + "order_id": cls.purchase_order_2.id, + "product_id": cls.product2.id, + "product_uom": uom_id, + "price_unit": 1.0, + "product_qty": 5.0, + "analytic_distribution": {cls.analytic_account_1.id: 100}, + } + cls.purchase_order_line_2 = purchase_order_line_model.sudo().create(pl_dict2) + cls.purchase_order_2.button_confirm() + + # Purchase Order Num 3 (service) + po_dict3 = {"partner_id": cls.partner2.id} + cls.purchase_order_3 = cls.purchase_order_model.create(po_dict3) + pr_dict3 = { + "name": "Product Test 3", + "uom_id": uom_id, + "purchase_method": "receive", + "type": "service", + } + cls.product3 = prod_model.sudo().create(pr_dict3) + pl_dict3 = { + "date_planned": Datetime.now(), + "name": "PO03", + "order_id": cls.purchase_order_3.id, + "product_id": cls.product3.id, + "product_uom": uom_id, + "price_unit": 10.0, + "product_qty": 5.0, + } + cls.purchase_order_line_3 = purchase_order_line_model.sudo().create(pl_dict3) + cls.purchase_order_3.button_confirm() + + def test_compute_qty_to_invoice_and_receive(self): + self.assertEqual( + self.purchase_order_line_1.qty_to_invoice, + 5.0, + "Expected 5 as qty_to_invoice in the PO line", + ) + self.assertEqual( + self.purchase_order_line_1.qty_to_receive, + 5.0, + "Expected 5 as qty_to_receive in the PO line", + ) + self.assertEqual( + self.purchase_order_1.qty_to_invoice, + 5.0, + "Expected 5 as qty_to_invoice in the PO", + ) + self.assertEqual( + self.purchase_order_1.qty_to_receive, + 5.0, + "Expected 5 as qty_to_receive in the PO", + ) + + self.assertEqual( + self.purchase_order_line_2.qty_to_invoice, + 0.0, + "Expected 0 as qty_to_invoice in the PO line", + ) + self.assertEqual( + self.purchase_order_line_2.qty_to_receive, + 5.0, + "Expected 5 as qty_to_receive in the PO line", + ) + self.assertEqual( + self.purchase_order_2.qty_to_invoice, + 0.0, + "Expected 0 as qty_to_invoice in the PO", + ) + self.assertEqual( + self.purchase_order_2.qty_to_receive, + 5.0, + "Expected 5 as qty_to_receive in the PO", + ) + + # Now we receive the products + for picking in self.purchase_order_2.picking_ids: + picking.action_confirm() + picking.move_ids.write({"quantity": 5.0}) + picking.button_validate() + + # The value is computed when you run it as at user but not in the test + self.purchase_order_2._compute_qty_to_invoice() + self.purchase_order_2._compute_qty_to_receive() + + self.assertEqual( + self.purchase_order_line_2.qty_to_invoice, + 5.0, + "Expected 5 as qty_to_invoice in the PO line", + ) + self.assertEqual( + self.purchase_order_line_2.qty_to_receive, + 0.0, + "Expected 0 as qty_to_receive in the PO line", + ) + self.assertEqual( + self.purchase_order_2.qty_to_invoice, + 5.0, + "Expected 5 as qty_to_invoice in the PO", + ) + self.assertEqual( + self.purchase_order_2.qty_to_receive, + 0.0, + "Expected 0 as qty_to_receive in the PO", + ) + + def test_search_qty_to_invoice_and_receive(self): + found = self.purchase_order_model.search( + [ + "|", + ("pending_qty_to_invoice", "=", True), + ("pending_qty_to_receive", "=", True), + ] + ) + self.assertTrue( + self.purchase_order_1.id in found.ids, + f"Expected PO {self.purchase_order_1.id} in POs {found.ids}", + ) + found = self.purchase_order_model.search( + [ + "|", + ("pending_qty_to_invoice", "=", False), + ("pending_qty_to_receive", "=", False), + ] + ) + self.assertFalse( + self.purchase_order_2.id not in found.ids, + f"Expected PO {self.purchase_order_2.id} not to be in POs {found.ids}", + ) + + def test_03_po_line_with_services(self): + self.assertEqual( + self.purchase_order_line_3.qty_to_receive, + 5.0, + ) + self.assertEqual( + self.purchase_order_line_3.qty_received, + 0.0, + ) + self.purchase_order_line_3.qty_received = 3.0 + self.assertEqual( + self.purchase_order_line_3.qty_to_receive, + 2.0, + ) + self.assertEqual( + self.purchase_order_line_3.qty_received, + 3.0, + ) + self.assertEqual( + self.purchase_order_line_3.qty_to_invoice, + 3.0, + ) diff --git a/purchase_open_qty/views/purchase_order_line_views.xml b/purchase_open_qty/views/purchase_order_line_views.xml new file mode 100644 index 00000000000..9f5af045c09 --- /dev/null +++ b/purchase_open_qty/views/purchase_order_line_views.xml @@ -0,0 +1,38 @@ + + + + + + + + purchase.order.line + + + + + + + + + purchase.order.line.search - purchase_open_qty + purchase.order.line + + + + + + + + + diff --git a/purchase_open_qty/views/purchase_order_views.xml b/purchase_open_qty/views/purchase_order_views.xml new file mode 100644 index 00000000000..f070754b127 --- /dev/null +++ b/purchase_open_qty/views/purchase_order_views.xml @@ -0,0 +1,46 @@ + + + + + + + purchase.order.form -- open qty fields + purchase.order + + + + + + + + + + + + request.quotation.select -- open qty filters + purchase.order + + + + + + + + +