From c01541e78294c2954ca931e55e744309ca2d6ef1 Mon Sep 17 00:00:00 2001 From: mreficent Date: Mon, 26 Jun 2017 11:08:57 +0200 Subject: [PATCH 01/48] [ADD] purchase_open_qty --- purchase_open_qty/README.rst | 55 +++++++++++++ purchase_open_qty/__init__.py | 7 ++ purchase_open_qty/__openerp__.py | 23 ++++++ purchase_open_qty/init_hook.py | 56 +++++++++++++ purchase_open_qty/models/__init__.py | 6 ++ purchase_open_qty/models/purchase_order.py | 74 ++++++++++++++++++ purchase_open_qty/static/description/icon.png | Bin 0 -> 9455 bytes purchase_open_qty/tests/__init__.py | 5 ++ .../tests/test_purchase_open_qty.py | 70 +++++++++++++++++ purchase_open_qty/views/purchase_view.xml | 30 +++++++ 10 files changed, 326 insertions(+) create mode 100644 purchase_open_qty/README.rst create mode 100644 purchase_open_qty/__init__.py create mode 100644 purchase_open_qty/__openerp__.py create mode 100644 purchase_open_qty/init_hook.py create mode 100644 purchase_open_qty/models/__init__.py create mode 100644 purchase_open_qty/models/purchase_order.py create mode 100644 purchase_open_qty/static/description/icon.png create mode 100644 purchase_open_qty/tests/__init__.py create mode 100644 purchase_open_qty/tests/test_purchase_open_qty.py create mode 100644 purchase_open_qty/views/purchase_view.xml diff --git a/purchase_open_qty/README.rst b/purchase_open_qty/README.rst new file mode 100644 index 00000000000..e5f89cf848c --- /dev/null +++ b/purchase_open_qty/README.rst @@ -0,0 +1,55 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +================= +Purchase Open Qty +================= + +This module allows purchase users to identify what are the purchase orders +that currently have quantities pending to invoice or to receive. + +Usage +===== + +To use this module, you need to go to Purchase Orders and select the new filters in the search. + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/142/9.0 + +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 smash it by providing detailed and welcomed feedback. + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* Miquel Raïch + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +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. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/purchase_open_qty/__init__.py b/purchase_open_qty/__init__.py new file mode 100644 index 00000000000..ceedf10a6c0 --- /dev/null +++ b/purchase_open_qty/__init__.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# (http://www.eficent.com) +# 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/__openerp__.py b/purchase_open_qty/__openerp__.py new file mode 100644 index 00000000000..8cc19b76683 --- /dev/null +++ b/purchase_open_qty/__openerp__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# (http://www.eficent.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": "9.0.1.0.0", + "author": "Eficent, " + "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/purchase-workflow", + "category": "Purchases", + "depends": ["purchase"], + "data": [ + 'views/purchase_view.xml', + ], + 'pre_init_hook': 'pre_init_hook', + "license": "AGPL-3", + "installable": True, + "application": False, +} diff --git a/purchase_open_qty/init_hook.py b/purchase_open_qty/init_hook.py new file mode 100644 index 00000000000..c80c670a329 --- /dev/null +++ b/purchase_open_qty/init_hook.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# (http://www.eficent.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +import logging + + +logger = logging.getLogger(__name__) + + +def pre_init_hook(cr): + """ + 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(cr) + + +def store_field_qty_to_receive_and_invoice(cr): + + cr.execute("""SELECT column_name + FROM information_schema.columns + WHERE table_name='purchase_order_line' AND + column_name='qty_to_receive'""") + if not cr.fetchone(): + logger.info('Creating field qty_to_receive on purchase_order_line') + 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'; + """) + + cr.execute("""SELECT column_name + FROM information_schema.columns + WHERE table_name='purchase_order_line' AND + column_name='qty_to_invoice'""") + if not cr.fetchone(): + logger.info('Creating field qty_to_invoice on purchase_order_line') + 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') + cr.execute( + """ + UPDATE purchase_order_line pol + SET qty_to_receive = pol.product_qty - pol.qty_received, + qty_to_invoice = pol.product_qty - pol.qty_invoiced + """ + ) diff --git a/purchase_open_qty/models/__init__.py b/purchase_open_qty/models/__init__.py new file mode 100644 index 00000000000..9bbb0d8b322 --- /dev/null +++ b/purchase_open_qty/models/__init__.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# (http://www.eficent.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import purchase_order diff --git a/purchase_open_qty/models/purchase_order.py b/purchase_open_qty/models/purchase_order.py new file mode 100644 index 00000000000..2ea74a1471b --- /dev/null +++ b/purchase_open_qty/models/purchase_order.py @@ -0,0 +1,74 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# (http://www.eficent.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from openerp import api, fields, models +import openerp.addons.decimal_precision as dp + + +class PurchaseOrderLine(models.Model): + _inherit = 'purchase.order.line' + + @api.depends('product_qty', 'qty_invoiced') + def _compute_qty_to_invoice(self): + for line in self: + line.qty_to_invoice = line.product_qty - line.qty_invoiced + + @api.depends('order_id.state', 'move_ids.state', 'product_qty') + def _compute_qty_received(self): + super(PurchaseOrderLine, self)._compute_qty_received() + for line in self: + line.qty_to_receive = line.product_qty - line.qty_received + + qty_to_invoice = fields.Float(compute='_compute_qty_to_invoice', + digits=dp.get_precision( + 'Product Unit of Measure'), + copy=False, + string="Qty to Bill", store=True) + qty_to_receive = fields.Float(compute='_compute_qty_received', + digits=dp.get_precision( + 'Product Unit of Measure'), + copy=False, + string="Qty to Receive", store=True) + + +class PurchaseOrder(models.Model): + _inherit = 'purchase.order' + + def _compute_qty_to_invoice(self): + for po in self: + po.qty_to_invoice = sum(po.mapped('order_line.qty_to_invoice')) + + def _compute_qty_to_receive(self): + for po in self: + po.qty_to_receive = sum(po.mapped('order_line.qty_to_receive')) + + @api.model + def _search_qty_to_invoice(self, operator, value): + po_line_obj = self.env['purchase.order.line'] + res = [] + po_lines = po_line_obj.search( + [('qty_to_invoice', operator, value)]) + order_ids = po_lines.mapped('order_id') + res.append(('id', 'in', order_ids.ids)) + return res + + @api.model + def _search_qty_to_receive(self, operator, value): + po_line_obj = self.env['purchase.order.line'] + res = [] + po_lines = po_line_obj.search( + [('qty_to_receive', operator, value)]) + order_ids = po_lines.mapped('order_id') + res.append(('id', 'in', order_ids.ids)) + return res + + qty_to_invoice = fields.Float(compute='_compute_qty_to_invoice', + search='_search_qty_to_invoice', + string="Qty to Bill", + default=0.0) + qty_to_receive = fields.Float(compute='_compute_qty_to_receive', + search='_search_qty_to_receive', + string="Qty to Receive", + default=0.0) diff --git a/purchase_open_qty/static/description/icon.png b/purchase_open_qty/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 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 z 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 Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/purchase_open_qty/tests/__init__.py b/purchase_open_qty/tests/__init__.py new file mode 100644 index 00000000000..bcc0ad83b94 --- /dev/null +++ b/purchase_open_qty/tests/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# 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..162818d8836 --- /dev/null +++ b/purchase_open_qty/tests/test_purchase_open_qty.py @@ -0,0 +1,70 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openerp.tests.common import TransactionCase +from openerp.fields import Datetime + + +class TestPurchaseOpenQty(TransactionCase): + def setUp(self): + super(TestPurchaseOpenQty, self).setUp() + self.purchase_order_model = self.env['purchase.order'] + purchase_order_line_model = self.env['purchase.order.line'] + partner_model = self.env['res.partner'] + prod_model = self.env['product.product'] + analytic_account_model = self.env['account.analytic.account'] + self.product_uom_model = self.env['product.uom'] + + pa_dict = { + 'name': 'Partner 1', + 'supplier': True, + } + self.partner = partner_model.sudo().create(pa_dict) + po_dict = { + 'partner_id': self.partner.id, + } + # Purchase Order Num 1 + self.purchase_order_1 = self.purchase_order_model.create(po_dict) + uom_id = self.product_uom_model.search([ + ('name', '=', 'Unit(s)')])[0].id + pr_dict = { + 'name': 'Product Test', + 'uom_id': uom_id, + } + self.product = prod_model.sudo().create(pr_dict) + ac_dict = { + 'name': 'analytic account 1', + } + self.analytic_account_1 = \ + analytic_account_model.sudo().create(ac_dict) + pl_dict1 = { + 'date_planned': Datetime.now(), + 'name': 'PO01', + 'order_id': self.purchase_order_1.id, + 'product_id': self.product.id, + 'product_uom': uom_id, + 'price_unit': 1.0, + 'product_qty': 5.0, + 'account_analytic_id': self.analytic_account_1.id, + } + self.purchase_order_line_1 = \ + purchase_order_line_model.sudo().create(pl_dict1) + self.purchase_order_1.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") + + def test_search_qty_to_invoice_and_receive(self): + found = self.purchase_order_model.search( + ['|', ('qty_to_invoice', '>', 0.0), ('qty_to_receive', '>', 0.0)]) + self.assertTrue( + self.purchase_order_1.id in found.ids, + 'Expected PO %s in POs %s' % (self.purchase_order_1.id, found.ids)) diff --git a/purchase_open_qty/views/purchase_view.xml b/purchase_open_qty/views/purchase_view.xml new file mode 100644 index 00000000000..39eaf45b0ad --- /dev/null +++ b/purchase_open_qty/views/purchase_view.xml @@ -0,0 +1,30 @@ + + + + + purchase.order.form -- open qty fields + purchase.order + + + + + + + + + + + + + request.quotation.select -- open qty filters + purchase.order + + + + + + + + + + From 947e4eba769e5dcd24afb07bd0f73f15096f5d6a Mon Sep 17 00:00:00 2001 From: mreficent Date: Tue, 25 Jul 2017 15:17:16 +0200 Subject: [PATCH 02/48] [10.0][MIG] purchase_open_qty: Migration to 10.0 --- purchase_open_qty/README.rst | 2 +- .../{__openerp__.py => __manifest__.py} | 2 +- purchase_open_qty/models/purchase_order.py | 4 +- .../tests/test_purchase_open_qty.py | 4 +- purchase_open_qty/views/purchase_view.xml | 54 +++++++++---------- 5 files changed, 32 insertions(+), 34 deletions(-) rename purchase_open_qty/{__openerp__.py => __manifest__.py} (96%) diff --git a/purchase_open_qty/README.rst b/purchase_open_qty/README.rst index e5f89cf848c..5e1b2e99a8f 100644 --- a/purchase_open_qty/README.rst +++ b/purchase_open_qty/README.rst @@ -16,7 +16,7 @@ To use this module, you need to go to Purchase Orders and select the new filters .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/142/9.0 + :target: https://runbot.odoo-community.org/runbot/142/10.0 Bug Tracker =========== diff --git a/purchase_open_qty/__openerp__.py b/purchase_open_qty/__manifest__.py similarity index 96% rename from purchase_open_qty/__openerp__.py rename to purchase_open_qty/__manifest__.py index 8cc19b76683..0ae98684057 100644 --- a/purchase_open_qty/__openerp__.py +++ b/purchase_open_qty/__manifest__.py @@ -7,7 +7,7 @@ "name": "Purchase Open Qty", "summary": "Allows to identify the purchase orders that have quantities " "pending to invoice or to receive.", - "version": "9.0.1.0.0", + "version": "10.0.1.0.0", "author": "Eficent, " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/purchase-workflow", diff --git a/purchase_open_qty/models/purchase_order.py b/purchase_open_qty/models/purchase_order.py index 2ea74a1471b..88447dc4e5e 100644 --- a/purchase_open_qty/models/purchase_order.py +++ b/purchase_open_qty/models/purchase_order.py @@ -3,8 +3,8 @@ # (http://www.eficent.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -from openerp import api, fields, models -import openerp.addons.decimal_precision as dp +from odoo import api, fields, models +import odoo.addons.decimal_precision as dp class PurchaseOrderLine(models.Model): diff --git a/purchase_open_qty/tests/test_purchase_open_qty.py b/purchase_open_qty/tests/test_purchase_open_qty.py index 162818d8836..be3cdb89fa4 100644 --- a/purchase_open_qty/tests/test_purchase_open_qty.py +++ b/purchase_open_qty/tests/test_purchase_open_qty.py @@ -2,8 +2,8 @@ # Copyright 2017 Eficent Business and IT Consulting Services S.L. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp.tests.common import TransactionCase -from openerp.fields import Datetime +from odoo.tests.common import TransactionCase +from odoo.fields import Datetime class TestPurchaseOpenQty(TransactionCase): diff --git a/purchase_open_qty/views/purchase_view.xml b/purchase_open_qty/views/purchase_view.xml index 39eaf45b0ad..8f7cd97b090 100644 --- a/purchase_open_qty/views/purchase_view.xml +++ b/purchase_open_qty/views/purchase_view.xml @@ -1,30 +1,28 @@ - - - - purchase.order.form -- open qty fields - purchase.order - - - - - - - - - - + + + purchase.order.form -- open qty fields + purchase.order + + + + + + + + + + - - request.quotation.select -- open qty filters - purchase.order - - - - - - - - - - + + request.quotation.select -- open qty filters + purchase.order + + + + + + + + + From 9a7ed9c3deb89d5e7f1f8adf94176e4003687b02 Mon Sep 17 00:00:00 2001 From: mreficent Date: Wed, 30 Aug 2017 18:35:10 +0200 Subject: [PATCH 03/48] [FIX] adapt methods to some cases --- purchase_open_qty/init_hook.py | 27 ++++++++++++++++-- purchase_open_qty/models/purchase_order.py | 28 +++++++++++++++---- .../tests/test_purchase_open_qty.py | 1 + 3 files changed, 48 insertions(+), 8 deletions(-) diff --git a/purchase_open_qty/init_hook.py b/purchase_open_qty/init_hook.py index c80c670a329..327a3a5393b 100644 --- a/purchase_open_qty/init_hook.py +++ b/purchase_open_qty/init_hook.py @@ -50,7 +50,30 @@ def store_field_qty_to_receive_and_invoice(cr): cr.execute( """ UPDATE purchase_order_line pol - SET qty_to_receive = pol.product_qty - pol.qty_received, - qty_to_invoice = pol.product_qty - pol.qty_invoiced + 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 + """ + ) + 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 + """ + ) + cr.execute( + """ + UPDATE purchase_order_line + SET qty_to_receive = pol.qty + FROM (SELECT purchase_line_id, sum(product_uom_qty) as qty + FROM stock_move + WHERE purchase_line_id IS NOT NULL AND + state not in ('cancel', 'done') + GROUP BY purchase_line_id) as pol + WHERE purchase_order_line.id = pol.purchase_line_id """ ) diff --git a/purchase_open_qty/models/purchase_order.py b/purchase_open_qty/models/purchase_order.py index 88447dc4e5e..a6b263555d5 100644 --- a/purchase_open_qty/models/purchase_order.py +++ b/purchase_open_qty/models/purchase_order.py @@ -10,23 +10,39 @@ class PurchaseOrderLine(models.Model): _inherit = 'purchase.order.line' - @api.depends('product_qty', 'qty_invoiced') + @api.depends('product_qty', 'qty_invoiced', + 'invoice_lines.invoice_id.state', + 'order_id.state', 'move_ids.state', 'qty_received') def _compute_qty_to_invoice(self): for line in self: - line.qty_to_invoice = line.product_qty - line.qty_invoiced + if line.product_id.purchase_method == 'receive': + qty = line.qty_received - line.qty_invoiced + if qty >= 0.0: + line.qty_to_invoice = qty + else: + line.qty_to_invoice = 0.0 + else: + line.qty_to_invoice = line.product_qty - line.qty_invoiced @api.depends('order_id.state', 'move_ids.state', 'product_qty') - def _compute_qty_received(self): - super(PurchaseOrderLine, self)._compute_qty_received() + def _compute_qty_to_receive(self): for line in self: - line.qty_to_receive = line.product_qty - line.qty_received + 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: + total += move.product_uom._compute_quantity( + move.product_uom_qty, line.product_uom) + else: + total += move.product_uom_qty + line.qty_to_receive = total qty_to_invoice = fields.Float(compute='_compute_qty_to_invoice', digits=dp.get_precision( 'Product Unit of Measure'), copy=False, string="Qty to Bill", store=True) - qty_to_receive = fields.Float(compute='_compute_qty_received', + qty_to_receive = fields.Float(compute='_compute_qty_to_receive', digits=dp.get_precision( 'Product Unit of Measure'), copy=False, diff --git a/purchase_open_qty/tests/test_purchase_open_qty.py b/purchase_open_qty/tests/test_purchase_open_qty.py index be3cdb89fa4..14c5130a1f6 100644 --- a/purchase_open_qty/tests/test_purchase_open_qty.py +++ b/purchase_open_qty/tests/test_purchase_open_qty.py @@ -31,6 +31,7 @@ def setUp(self): pr_dict = { 'name': 'Product Test', 'uom_id': uom_id, + 'purchase_method': 'purchase', } self.product = prod_model.sudo().create(pr_dict) ac_dict = { From 43c24bae9b7ac92e82e2ae6e05f56e8e68e1c632 Mon Sep 17 00:00:00 2001 From: mreficent Date: Tue, 12 Sep 2017 19:14:45 +0200 Subject: [PATCH 04/48] [ADD] More test --- .../tests/test_purchase_open_qty.py | 70 +++++++++++++++++-- 1 file changed, 64 insertions(+), 6 deletions(-) diff --git a/purchase_open_qty/tests/test_purchase_open_qty.py b/purchase_open_qty/tests/test_purchase_open_qty.py index 14c5130a1f6..79cd6566349 100644 --- a/purchase_open_qty/tests/test_purchase_open_qty.py +++ b/purchase_open_qty/tests/test_purchase_open_qty.py @@ -16,15 +16,29 @@ def setUp(self): analytic_account_model = self.env['account.analytic.account'] self.product_uom_model = self.env['product.uom'] + # partners pa_dict = { 'name': 'Partner 1', 'supplier': True, } self.partner = partner_model.sudo().create(pa_dict) + pa_dict2 = { + 'name': 'Partner 2', + 'supplier': True, + } + self.partner2 = partner_model.sudo().create(pa_dict2) + + # account + ac_dict = { + 'name': 'analytic account 1', + } + self.analytic_account_1 = \ + analytic_account_model.sudo().create(ac_dict) + + # Purchase Order Num 1 po_dict = { 'partner_id': self.partner.id, } - # Purchase Order Num 1 self.purchase_order_1 = self.purchase_order_model.create(po_dict) uom_id = self.product_uom_model.search([ ('name', '=', 'Unit(s)')])[0].id @@ -34,11 +48,6 @@ def setUp(self): 'purchase_method': 'purchase', } self.product = prod_model.sudo().create(pr_dict) - ac_dict = { - 'name': 'analytic account 1', - } - self.analytic_account_1 = \ - analytic_account_model.sudo().create(ac_dict) pl_dict1 = { 'date_planned': Datetime.now(), 'name': 'PO01', @@ -53,6 +62,31 @@ def setUp(self): purchase_order_line_model.sudo().create(pl_dict1) self.purchase_order_1.button_confirm() + # Purchase Order Num 2 + po_dict2 = { + 'partner_id': self.partner2.id, + } + self.purchase_order_2 = self.purchase_order_model.create(po_dict2) + pr_dict2 = { + 'name': 'Product Test 2', + 'uom_id': uom_id, + 'purchase_method': 'receive', + } + self.product2 = prod_model.sudo().create(pr_dict2) + pl_dict2 = { + 'date_planned': Datetime.now(), + 'name': 'PO02', + 'order_id': self.purchase_order_2.id, + 'product_id': self.product2.id, + 'product_uom': uom_id, + 'price_unit': 1.0, + 'product_qty': 5.0, + 'account_analytic_id': self.analytic_account_1.id, + } + self.purchase_order_line_2 = \ + purchase_order_line_model.sudo().create(pl_dict2) + self.purchase_order_2.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") @@ -63,6 +97,30 @@ def test_compute_qty_to_invoice_and_receive(self): 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.force_assign() + picking.pack_operation_product_ids.write({'qty_done': 5.0}) + picking.do_new_transfer() + + 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( ['|', ('qty_to_invoice', '>', 0.0), ('qty_to_receive', '>', 0.0)]) From 3c4d43fbcba7e2ad8e0ba15cc87bc0a3b894993d Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 25 Nov 2017 09:20:37 +0100 Subject: [PATCH 05/48] OCA Transbot updated translations from Transifex --- purchase_open_qty/i18n/de.po | 51 +++++++++++++++++++++++++++++++++ purchase_open_qty/i18n/es.po | 51 +++++++++++++++++++++++++++++++++ purchase_open_qty/i18n/es_MX.po | 51 +++++++++++++++++++++++++++++++++ purchase_open_qty/i18n/es_PE.po | 51 +++++++++++++++++++++++++++++++++ purchase_open_qty/i18n/fi.po | 51 +++++++++++++++++++++++++++++++++ purchase_open_qty/i18n/fr.po | 51 +++++++++++++++++++++++++++++++++ purchase_open_qty/i18n/fr_BE.po | 51 +++++++++++++++++++++++++++++++++ purchase_open_qty/i18n/gl.po | 51 +++++++++++++++++++++++++++++++++ purchase_open_qty/i18n/hr.po | 51 +++++++++++++++++++++++++++++++++ purchase_open_qty/i18n/it.po | 51 +++++++++++++++++++++++++++++++++ purchase_open_qty/i18n/nl.po | 51 +++++++++++++++++++++++++++++++++ purchase_open_qty/i18n/nl_NL.po | 51 +++++++++++++++++++++++++++++++++ purchase_open_qty/i18n/pt_BR.po | 51 +++++++++++++++++++++++++++++++++ purchase_open_qty/i18n/pt_PT.po | 51 +++++++++++++++++++++++++++++++++ purchase_open_qty/i18n/ro.po | 51 +++++++++++++++++++++++++++++++++ purchase_open_qty/i18n/sl.po | 51 +++++++++++++++++++++++++++++++++ purchase_open_qty/i18n/vi_VN.po | 51 +++++++++++++++++++++++++++++++++ 17 files changed, 867 insertions(+) create mode 100644 purchase_open_qty/i18n/de.po create mode 100644 purchase_open_qty/i18n/es.po create mode 100644 purchase_open_qty/i18n/es_MX.po create mode 100644 purchase_open_qty/i18n/es_PE.po create mode 100644 purchase_open_qty/i18n/fi.po create mode 100644 purchase_open_qty/i18n/fr.po create mode 100644 purchase_open_qty/i18n/fr_BE.po create mode 100644 purchase_open_qty/i18n/gl.po create mode 100644 purchase_open_qty/i18n/hr.po create mode 100644 purchase_open_qty/i18n/it.po create mode 100644 purchase_open_qty/i18n/nl.po create mode 100644 purchase_open_qty/i18n/nl_NL.po create mode 100644 purchase_open_qty/i18n/pt_BR.po create mode 100644 purchase_open_qty/i18n/pt_PT.po create mode 100644 purchase_open_qty/i18n/ro.po create mode 100644 purchase_open_qty/i18n/sl.po create mode 100644 purchase_open_qty/i18n/vi_VN.po diff --git a/purchase_open_qty/i18n/de.po b/purchase_open_qty/i18n/de.po new file mode 100644 index 00000000000..ad50b64581a --- /dev/null +++ b/purchase_open_qty/i18n/de.po @@ -0,0 +1,51 @@ +# 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: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model: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 "Bestellauftrag" + +#. 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_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +msgstr "" diff --git a/purchase_open_qty/i18n/es.po b/purchase_open_qty/i18n/es.po new file mode 100644 index 00000000000..11976c834e9 --- /dev/null +++ b/purchase_open_qty/i18n/es.po @@ -0,0 +1,51 @@ +# 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 (https://www.transifex.com/oca/teams/23907/es/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model: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 "Línea orden de compra" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +msgstr "" diff --git a/purchase_open_qty/i18n/es_MX.po b/purchase_open_qty/i18n/es_MX.po new file mode 100644 index 00000000000..f2197a5720b --- /dev/null +++ b/purchase_open_qty/i18n/es_MX.po @@ -0,0 +1,51 @@ +# 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" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es_MX\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model: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_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +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..23afd05f5b1 --- /dev/null +++ b/purchase_open_qty/i18n/es_PE.po @@ -0,0 +1,51 @@ +# 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" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es_PE\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model: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_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +msgstr "" diff --git a/purchase_open_qty/i18n/fi.po b/purchase_open_qty/i18n/fi.po new file mode 100644 index 00000000000..8009b76bab4 --- /dev/null +++ b/purchase_open_qty/i18n/fi.po @@ -0,0 +1,51 @@ +# 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" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model: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_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +msgstr "" diff --git a/purchase_open_qty/i18n/fr.po b/purchase_open_qty/i18n/fr.po new file mode 100644 index 00000000000..93ebc269a84 --- /dev/null +++ b/purchase_open_qty/i18n/fr.po @@ -0,0 +1,51 @@ +# 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: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model: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 "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_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +msgstr "" diff --git a/purchase_open_qty/i18n/fr_BE.po b/purchase_open_qty/i18n/fr_BE.po new file mode 100644 index 00000000000..20f622c2379 --- /dev/null +++ b/purchase_open_qty/i18n/fr_BE.po @@ -0,0 +1,51 @@ +# 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: 2018-03-03 03:48+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: French (Belgium) (https://www.transifex.com/oca/teams/23907/fr_BE/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr_BE\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model: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 "Commande fournisseur" + +#. 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_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +msgstr "" diff --git a/purchase_open_qty/i18n/gl.po b/purchase_open_qty/i18n/gl.po new file mode 100644 index 00000000000..98e23054360 --- /dev/null +++ b/purchase_open_qty/i18n/gl.po @@ -0,0 +1,51 @@ +# 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" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: gl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model: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_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +msgstr "" diff --git a/purchase_open_qty/i18n/hr.po b/purchase_open_qty/i18n/hr.po new file mode 100644 index 00000000000..6c02030fcac --- /dev/null +++ b/purchase_open_qty/i18n/hr.po @@ -0,0 +1,51 @@ +# 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" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr\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.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.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_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +msgstr "Kol za zaprimanje" diff --git a/purchase_open_qty/i18n/it.po b/purchase_open_qty/i18n/it.po new file mode 100644 index 00000000000..0e0e84ebf9e --- /dev/null +++ b/purchase_open_qty/i18n/it.po @@ -0,0 +1,51 @@ +# 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: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model: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 "Ordine Acquisto" + +#. module: purchase_open_qty +#: model:ir.model,name:purchase_open_qty.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Riga Ordine d'Acquisto" + +#. module: purchase_open_qty +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +msgstr "" diff --git a/purchase_open_qty/i18n/nl.po b/purchase_open_qty/i18n/nl.po new file mode 100644 index 00000000000..a7350a1da3a --- /dev/null +++ b/purchase_open_qty/i18n/nl.po @@ -0,0 +1,51 @@ +# 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" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model: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_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +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..915a6d93f34 --- /dev/null +++ b/purchase_open_qty/i18n/nl_NL.po @@ -0,0 +1,51 @@ +# 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" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl_NL\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model: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_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +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..02b96ab4cc9 --- /dev/null +++ b/purchase_open_qty/i18n/pt_BR.po @@ -0,0 +1,51 @@ +# 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" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model: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_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +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..5260edbea84 --- /dev/null +++ b/purchase_open_qty/i18n/pt_PT.po @@ -0,0 +1,51 @@ +# 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" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_PT\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model: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_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +msgstr "" diff --git a/purchase_open_qty/i18n/ro.po b/purchase_open_qty/i18n/ro.po new file mode 100644 index 00000000000..d568a3e5ac3 --- /dev/null +++ b/purchase_open_qty/i18n/ro.po @@ -0,0 +1,51 @@ +# 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" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ro\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.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model: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_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +msgstr "" diff --git a/purchase_open_qty/i18n/sl.po b/purchase_open_qty/i18n/sl.po new file mode 100644 index 00000000000..cfb2514ccb1 --- /dev/null +++ b/purchase_open_qty/i18n/sl.po @@ -0,0 +1,51 @@ +# 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" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sl\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.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model: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_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +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..4d3f11734b6 --- /dev/null +++ b/purchase_open_qty/i18n/vi_VN.po @@ -0,0 +1,51 @@ +# 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" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: vi_VN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model: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_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +msgstr "" From 462c9f1e8544189cf844313ab572f5c899b58f3f Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Tue, 6 Mar 2018 11:26:39 +0100 Subject: [PATCH 06/48] [10.0][IMP] purchase_open_qty: add filter to po lines --- purchase_open_qty/__manifest__.py | 2 +- purchase_open_qty/views/purchase_view.xml | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/purchase_open_qty/__manifest__.py b/purchase_open_qty/__manifest__.py index 0ae98684057..5bc463b1d7c 100644 --- a/purchase_open_qty/__manifest__.py +++ b/purchase_open_qty/__manifest__.py @@ -7,7 +7,7 @@ "name": "Purchase Open Qty", "summary": "Allows to identify the purchase orders that have quantities " "pending to invoice or to receive.", - "version": "10.0.1.0.0", + "version": "10.0.1.1.0", "author": "Eficent, " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/purchase-workflow", diff --git a/purchase_open_qty/views/purchase_view.xml b/purchase_open_qty/views/purchase_view.xml index 8f7cd97b090..1cc5e4ee7eb 100644 --- a/purchase_open_qty/views/purchase_view.xml +++ b/purchase_open_qty/views/purchase_view.xml @@ -25,4 +25,19 @@ + + purchase.order.line.search - purchase_open_qty + purchase.order.line + + + + + + + + From 322d4c1a782288c86542230749e15899280d3863 Mon Sep 17 00:00:00 2001 From: andreas Date: Tue, 5 Jun 2018 15:25:38 +0700 Subject: [PATCH 07/48] [MIG] purchase_open_qty: Migration to 11.0 --- purchase_open_qty/README.rst | 3 ++- purchase_open_qty/__init__.py | 1 - purchase_open_qty/__manifest__.py | 3 +-- purchase_open_qty/init_hook.py | 1 - purchase_open_qty/models/__init__.py | 1 - purchase_open_qty/models/purchase_order.py | 1 - purchase_open_qty/tests/__init__.py | 1 - purchase_open_qty/tests/test_purchase_open_qty.py | 5 ++--- 8 files changed, 5 insertions(+), 11 deletions(-) diff --git a/purchase_open_qty/README.rst b/purchase_open_qty/README.rst index 5e1b2e99a8f..76c8f748c68 100644 --- a/purchase_open_qty/README.rst +++ b/purchase_open_qty/README.rst @@ -16,7 +16,7 @@ To use this module, you need to go to Purchase Orders and select the new filters .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/142/10.0 + :target: https://runbot.odoo-community.org/runbot/142/11.0 Bug Tracker =========== @@ -38,6 +38,7 @@ Contributors ------------ * Miquel Raïch +* Andreas Dian Sukarno Putro Maintainer ---------- diff --git a/purchase_open_qty/__init__.py b/purchase_open_qty/__init__.py index ceedf10a6c0..31e495d6f0f 100644 --- a/purchase_open_qty/__init__.py +++ b/purchase_open_qty/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Eficent Business and IT Consulting Services S.L. # (http://www.eficent.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). diff --git a/purchase_open_qty/__manifest__.py b/purchase_open_qty/__manifest__.py index 5bc463b1d7c..a4276c1097e 100644 --- a/purchase_open_qty/__manifest__.py +++ b/purchase_open_qty/__manifest__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Eficent Business and IT Consulting Services S.L. # (http://www.eficent.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). @@ -7,7 +6,7 @@ "name": "Purchase Open Qty", "summary": "Allows to identify the purchase orders that have quantities " "pending to invoice or to receive.", - "version": "10.0.1.1.0", + "version": "11.0.1.1.0", "author": "Eficent, " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/purchase-workflow", diff --git a/purchase_open_qty/init_hook.py b/purchase_open_qty/init_hook.py index 327a3a5393b..fd62a5121e0 100644 --- a/purchase_open_qty/init_hook.py +++ b/purchase_open_qty/init_hook.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Eficent Business and IT Consulting Services S.L. # (http://www.eficent.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). diff --git a/purchase_open_qty/models/__init__.py b/purchase_open_qty/models/__init__.py index 9bbb0d8b322..e4229902ddb 100644 --- a/purchase_open_qty/models/__init__.py +++ b/purchase_open_qty/models/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Eficent Business and IT Consulting Services S.L. # (http://www.eficent.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). diff --git a/purchase_open_qty/models/purchase_order.py b/purchase_open_qty/models/purchase_order.py index a6b263555d5..ccf4ffa424d 100644 --- a/purchase_open_qty/models/purchase_order.py +++ b/purchase_open_qty/models/purchase_order.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Eficent Business and IT Consulting Services S.L. # (http://www.eficent.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). diff --git a/purchase_open_qty/tests/__init__.py b/purchase_open_qty/tests/__init__.py index bcc0ad83b94..966bc1d97f1 100644 --- a/purchase_open_qty/tests/__init__.py +++ b/purchase_open_qty/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Eficent Business and IT Consulting Services S.L. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). diff --git a/purchase_open_qty/tests/test_purchase_open_qty.py b/purchase_open_qty/tests/test_purchase_open_qty.py index 79cd6566349..cba1bad2e40 100644 --- a/purchase_open_qty/tests/test_purchase_open_qty.py +++ b/purchase_open_qty/tests/test_purchase_open_qty.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Eficent Business and IT Consulting Services S.L. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). @@ -109,8 +108,8 @@ def test_compute_qty_to_invoice_and_receive(self): # Now we receive the products for picking in self.purchase_order_2.picking_ids: picking.force_assign() - picking.pack_operation_product_ids.write({'qty_done': 5.0}) - picking.do_new_transfer() + picking.move_lines.write({'quantity_done': 5.0}) + picking.button_validate() self.assertEqual(self.purchase_order_line_2.qty_to_invoice, 5.0, "Expected 5 as qty_to_invoice in the PO line") From 627a4d83ba54d7a7d2a165c2367211e9dd5ed2e8 Mon Sep 17 00:00:00 2001 From: mreficent Date: Tue, 30 Oct 2018 11:50:15 +0100 Subject: [PATCH 08/48] [IMP] Adapt readme to smaller pieces --- purchase_open_qty/README.rst | 66 ++- purchase_open_qty/__init__.py | 2 - purchase_open_qty/i18n/de.po | 6 +- purchase_open_qty/i18n/es.po | 6 +- purchase_open_qty/i18n/es_MX.po | 9 +- purchase_open_qty/i18n/es_PE.po | 9 +- purchase_open_qty/i18n/fi.po | 6 +- purchase_open_qty/i18n/fr.po | 6 +- purchase_open_qty/i18n/fr_BE.po | 9 +- purchase_open_qty/i18n/gl.po | 6 +- purchase_open_qty/i18n/hr.po | 9 +- purchase_open_qty/i18n/it.po | 6 +- purchase_open_qty/i18n/nl.po | 6 +- purchase_open_qty/i18n/nl_NL.po | 9 +- purchase_open_qty/i18n/pt_BR.po | 9 +- purchase_open_qty/i18n/pt_PT.po | 9 +- purchase_open_qty/i18n/purchase_open_qty.pot | 49 ++ purchase_open_qty/i18n/ro.po | 9 +- purchase_open_qty/i18n/sl.po | 9 +- purchase_open_qty/i18n/vi_VN.po | 9 +- purchase_open_qty/models/__init__.py | 2 - purchase_open_qty/readme/CONTRIBUTORS.rst | 2 + purchase_open_qty/readme/DESCRIPTION.rst | 2 + purchase_open_qty/readme/USAGE.rst | 1 + .../static/description/index.html | 426 ++++++++++++++++++ purchase_open_qty/tests/__init__.py | 1 - 26 files changed, 613 insertions(+), 70 deletions(-) create mode 100644 purchase_open_qty/i18n/purchase_open_qty.pot create mode 100644 purchase_open_qty/readme/CONTRIBUTORS.rst create mode 100644 purchase_open_qty/readme/DESCRIPTION.rst create mode 100644 purchase_open_qty/readme/USAGE.rst create mode 100644 purchase_open_qty/static/description/index.html diff --git a/purchase_open_qty/README.rst b/purchase_open_qty/README.rst index 76c8f748c68..fc947cd51ef 100644 --- a/purchase_open_qty/README.rst +++ b/purchase_open_qty/README.rst @@ -1,56 +1,80 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - ================= Purchase Open Qty ================= +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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/11.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-11-0/purchase-workflow-11-0-purchase_open_qty + :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/11.0 + :alt: Try me on Runbot + +|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. -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/142/11.0 - 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 smash it by providing detailed and welcomed feedback. +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 ======= -Images ------- +Authors +~~~~~~~ -* Odoo Community Association: `Icon `_. +* Eficent Contributors ------------- +~~~~~~~~~~~~ * Miquel Raïch * Andreas Dian Sukarno Putro -Maintainer ----------- +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - 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. -To contribute to this module, please visit https://odoo-community.org. +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 index 31e495d6f0f..a2aff3e437a 100644 --- a/purchase_open_qty/__init__.py +++ b/purchase_open_qty/__init__.py @@ -1,5 +1,3 @@ -# Copyright 2017 Eficent Business and IT Consulting Services S.L. -# (http://www.eficent.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from . import models diff --git a/purchase_open_qty/i18n/de.po b/purchase_open_qty/i18n/de.po index ad50b64581a..8c674d29372 100644 --- a/purchase_open_qty/i18n/de.po +++ b/purchase_open_qty/i18n/de.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * purchase_open_qty -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,18 +12,20 @@ msgstr "" "PO-Revision-Date: 2017-11-24 07:53+0000\n" "Last-Translator: OCA Transbot , 2017\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" -"Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Bill" msgstr "" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Receive" msgstr "" diff --git a/purchase_open_qty/i18n/es.po b/purchase_open_qty/i18n/es.po index 11976c834e9..12e5281a0f9 100644 --- a/purchase_open_qty/i18n/es.po +++ b/purchase_open_qty/i18n/es.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * purchase_open_qty -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,18 +12,20 @@ msgstr "" "PO-Revision-Date: 2017-11-24 07:53+0000\n" "Last-Translator: OCA Transbot , 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: \n" -"Language: es\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Bill" msgstr "" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Receive" msgstr "" diff --git a/purchase_open_qty/i18n/es_MX.po b/purchase_open_qty/i18n/es_MX.po index f2197a5720b..af62db9ec62 100644 --- a/purchase_open_qty/i18n/es_MX.po +++ b/purchase_open_qty/i18n/es_MX.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * purchase_open_qty -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,19 +11,22 @@ msgstr "" "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-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" -"Language: es_MX\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Bill" msgstr "" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Receive" msgstr "" diff --git a/purchase_open_qty/i18n/es_PE.po b/purchase_open_qty/i18n/es_PE.po index 23afd05f5b1..885d08e95e0 100644 --- a/purchase_open_qty/i18n/es_PE.po +++ b/purchase_open_qty/i18n/es_PE.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * purchase_open_qty -# +# # Translators: # Henry Garcia , 2017 msgid "" @@ -11,19 +11,22 @@ msgstr "" "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-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" -"Language: es_PE\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Bill" msgstr "" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Receive" msgstr "" diff --git a/purchase_open_qty/i18n/fi.po b/purchase_open_qty/i18n/fi.po index 8009b76bab4..59ee03543e9 100644 --- a/purchase_open_qty/i18n/fi.po +++ b/purchase_open_qty/i18n/fi.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * purchase_open_qty -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,18 +12,20 @@ msgstr "" "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" -"Language: fi\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Bill" msgstr "" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Receive" msgstr "" diff --git a/purchase_open_qty/i18n/fr.po b/purchase_open_qty/i18n/fr.po index 93ebc269a84..992700f5a65 100644 --- a/purchase_open_qty/i18n/fr.po +++ b/purchase_open_qty/i18n/fr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * purchase_open_qty -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,18 +12,20 @@ msgstr "" "PO-Revision-Date: 2017-11-24 07:53+0000\n" "Last-Translator: OCA Transbot , 2017\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" -"Language: fr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Bill" msgstr "" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Receive" msgstr "" diff --git a/purchase_open_qty/i18n/fr_BE.po b/purchase_open_qty/i18n/fr_BE.po index 20f622c2379..b45cdda777d 100644 --- a/purchase_open_qty/i18n/fr_BE.po +++ b/purchase_open_qty/i18n/fr_BE.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * purchase_open_qty -# +# # Translators: # OCA Transbot , 2018 msgid "" @@ -11,19 +11,22 @@ msgstr "" "POT-Creation-Date: 2018-03-03 03:48+0000\n" "PO-Revision-Date: 2018-03-03 03:48+0000\n" "Last-Translator: OCA Transbot , 2018\n" -"Language-Team: French (Belgium) (https://www.transifex.com/oca/teams/23907/fr_BE/)\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" -"Language: fr_BE\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Bill" msgstr "" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Receive" msgstr "" diff --git a/purchase_open_qty/i18n/gl.po b/purchase_open_qty/i18n/gl.po index 98e23054360..25acd1629da 100644 --- a/purchase_open_qty/i18n/gl.po +++ b/purchase_open_qty/i18n/gl.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * purchase_open_qty -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,18 +12,20 @@ msgstr "" "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" -"Language: gl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Bill" msgstr "" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Receive" msgstr "" diff --git a/purchase_open_qty/i18n/hr.po b/purchase_open_qty/i18n/hr.po index 6c02030fcac..48b1611ad77 100644 --- a/purchase_open_qty/i18n/hr.po +++ b/purchase_open_qty/i18n/hr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * purchase_open_qty -# +# # Translators: # Bole , 2017 msgid "" @@ -12,18 +12,21 @@ msgstr "" "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" -"Language: hr\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" +"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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model: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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Receive" msgstr "Zaprimanje u tijeku" diff --git a/purchase_open_qty/i18n/it.po b/purchase_open_qty/i18n/it.po index 0e0e84ebf9e..5312f772b4e 100644 --- a/purchase_open_qty/i18n/it.po +++ b/purchase_open_qty/i18n/it.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * purchase_open_qty -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,18 +12,20 @@ msgstr "" "PO-Revision-Date: 2017-11-24 07:53+0000\n" "Last-Translator: OCA Transbot , 2017\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" -"Language: it\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Bill" msgstr "" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Receive" msgstr "" diff --git a/purchase_open_qty/i18n/nl.po b/purchase_open_qty/i18n/nl.po index a7350a1da3a..659c39c361f 100644 --- a/purchase_open_qty/i18n/nl.po +++ b/purchase_open_qty/i18n/nl.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * purchase_open_qty -# +# # Translators: # Erwin van der Ploeg , 2017 msgid "" @@ -12,18 +12,20 @@ msgstr "" "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" -"Language: nl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Bill" msgstr "" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Receive" msgstr "" diff --git a/purchase_open_qty/i18n/nl_NL.po b/purchase_open_qty/i18n/nl_NL.po index 915a6d93f34..4ea33076a70 100644 --- a/purchase_open_qty/i18n/nl_NL.po +++ b/purchase_open_qty/i18n/nl_NL.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * purchase_open_qty -# +# # Translators: # Peter Hageman , 2017 msgid "" @@ -11,19 +11,22 @@ msgstr "" "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-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" -"Language: nl_NL\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Bill" msgstr "" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Receive" msgstr "" diff --git a/purchase_open_qty/i18n/pt_BR.po b/purchase_open_qty/i18n/pt_BR.po index 02b96ab4cc9..b81f980811c 100644 --- a/purchase_open_qty/i18n/pt_BR.po +++ b/purchase_open_qty/i18n/pt_BR.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * purchase_open_qty -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,19 +11,22 @@ msgstr "" "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-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" -"Language: pt_BR\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Bill" msgstr "" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Receive" msgstr "" diff --git a/purchase_open_qty/i18n/pt_PT.po b/purchase_open_qty/i18n/pt_PT.po index 5260edbea84..74f66408016 100644 --- a/purchase_open_qty/i18n/pt_PT.po +++ b/purchase_open_qty/i18n/pt_PT.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * purchase_open_qty -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,19 +11,22 @@ msgstr "" "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-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" -"Language: pt_PT\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Bill" msgstr "" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Receive" 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..f43e5639d58 --- /dev/null +++ b/purchase_open_qty/i18n/purchase_open_qty.pot @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_open_qty +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +msgid "Pending Qty to Bill" +msgstr "" + +#. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search +#: model: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_line_qty_to_invoice +#: 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_line_qty_to_receive +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_receive +msgid "Qty to Receive" +msgstr "" + diff --git a/purchase_open_qty/i18n/ro.po b/purchase_open_qty/i18n/ro.po index d568a3e5ac3..3d64fa093ba 100644 --- a/purchase_open_qty/i18n/ro.po +++ b/purchase_open_qty/i18n/ro.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * purchase_open_qty -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,18 +12,21 @@ msgstr "" "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" -"Language: ro\n" -"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Bill" msgstr "" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Receive" msgstr "" diff --git a/purchase_open_qty/i18n/sl.po b/purchase_open_qty/i18n/sl.po index cfb2514ccb1..253b9e7102b 100644 --- a/purchase_open_qty/i18n/sl.po +++ b/purchase_open_qty/i18n/sl.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * purchase_open_qty -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,18 +12,21 @@ msgstr "" "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" -"Language: sl\n" -"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Bill" msgstr "" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Receive" msgstr "" diff --git a/purchase_open_qty/i18n/vi_VN.po b/purchase_open_qty/i18n/vi_VN.po index 4d3f11734b6..3868bdfb7f8 100644 --- a/purchase_open_qty/i18n/vi_VN.po +++ b/purchase_open_qty/i18n/vi_VN.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * purchase_open_qty -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,19 +11,22 @@ msgstr "" "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-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" -"Language: vi_VN\n" "Plural-Forms: nplurals=1; plural=0;\n" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Bill" msgstr "" #. module: purchase_open_qty +#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search #: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter msgid "Pending Qty to Receive" msgstr "" diff --git a/purchase_open_qty/models/__init__.py b/purchase_open_qty/models/__init__.py index e4229902ddb..5d1856dbfcc 100644 --- a/purchase_open_qty/models/__init__.py +++ b/purchase_open_qty/models/__init__.py @@ -1,5 +1,3 @@ -# Copyright 2017 Eficent Business and IT Consulting Services S.L. -# (http://www.eficent.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from . import purchase_order diff --git a/purchase_open_qty/readme/CONTRIBUTORS.rst b/purchase_open_qty/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..8552c8c591f --- /dev/null +++ b/purchase_open_qty/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Miquel Raïch +* Andreas Dian Sukarno Putro diff --git a/purchase_open_qty/readme/DESCRIPTION.rst b/purchase_open_qty/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..22dca2bf558 --- /dev/null +++ b/purchase_open_qty/readme/DESCRIPTION.rst @@ -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.rst b/purchase_open_qty/readme/USAGE.rst new file mode 100644 index 00000000000..c7311ad2f33 --- /dev/null +++ b/purchase_open_qty/readme/USAGE.rst @@ -0,0 +1 @@ +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/index.html b/purchase_open_qty/static/description/index.html new file mode 100644 index 00000000000..30525b47b89 --- /dev/null +++ b/purchase_open_qty/static/description/index.html @@ -0,0 +1,426 @@ + + + + + + +Purchase Open Qty + + + +
+

Purchase Open Qty

+ + +

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

+

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

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Eficent
  • +
+
+
+

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 index 966bc1d97f1..8fba0b937b5 100644 --- a/purchase_open_qty/tests/__init__.py +++ b/purchase_open_qty/tests/__init__.py @@ -1,4 +1,3 @@ -# Copyright 2017 Eficent Business and IT Consulting Services S.L. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import test_purchase_open_qty From 0509d222d8f80bd1eb64c71c9c120a7637239698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Be=C3=B1at=20Jimenez?= Date: Tue, 4 Dec 2018 09:56:56 +0100 Subject: [PATCH 09/48] [MIG] purchase_open_qty: Migration to v12 --- purchase_open_qty/README.rst | 10 ++-- purchase_open_qty/__manifest__.py | 4 +- purchase_open_qty/models/purchase_order.py | 52 +++++++++++------- .../static/description/index.html | 6 +-- .../tests/test_purchase_open_qty.py | 53 ++++++++++++++++--- purchase_open_qty/views/purchase_view.xml | 15 +++--- 6 files changed, 97 insertions(+), 43 deletions(-) diff --git a/purchase_open_qty/README.rst b/purchase_open_qty/README.rst index fc947cd51ef..2c332e790ae 100644 --- a/purchase_open_qty/README.rst +++ b/purchase_open_qty/README.rst @@ -14,13 +14,13 @@ Purchase Open Qty :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/11.0/purchase_open_qty + :target: https://github.com/OCA/purchase-workflow/tree/12.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-11-0/purchase-workflow-11-0-purchase_open_qty + :target: https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_open_qty :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/11.0 + :target: https://runbot.odoo-community.org/runbot/142/12.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -44,7 +44,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. @@ -75,6 +75,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/purchase-workflow `_ project on GitHub. +This module is part of the `OCA/purchase-workflow `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/purchase_open_qty/__manifest__.py b/purchase_open_qty/__manifest__.py index a4276c1097e..5fb1e4b02c1 100644 --- a/purchase_open_qty/__manifest__.py +++ b/purchase_open_qty/__manifest__.py @@ -6,12 +6,12 @@ "name": "Purchase Open Qty", "summary": "Allows to identify the purchase orders that have quantities " "pending to invoice or to receive.", - "version": "11.0.1.1.0", + "version": "12.0.1.1.0", "author": "Eficent, " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/purchase-workflow", "category": "Purchases", - "depends": ["purchase"], + "depends": ["purchase_stock"], "data": [ 'views/purchase_view.xml', ], diff --git a/purchase_open_qty/models/purchase_order.py b/purchase_open_qty/models/purchase_order.py index ccf4ffa424d..bec34e89cda 100644 --- a/purchase_open_qty/models/purchase_order.py +++ b/purchase_open_qty/models/purchase_order.py @@ -3,27 +3,31 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models +from odoo.tools import float_compare +from odoo.tools.safe_eval import safe_eval import odoo.addons.decimal_precision as dp class PurchaseOrderLine(models.Model): _inherit = 'purchase.order.line' - @api.depends('product_qty', 'qty_invoiced', - 'invoice_lines.invoice_id.state', - 'order_id.state', 'move_ids.state', 'qty_received') + @api.depends('product_qty', 'qty_invoiced', 'product_id.purchase_method', + 'qty_received') def _compute_qty_to_invoice(self): + precision = self.env['decimal.precision'].precision_get( + 'Product Unit of Measure') for line in self: if line.product_id.purchase_method == 'receive': qty = line.qty_received - line.qty_invoiced - if qty >= 0.0: + if float_compare(qty, 0.0, precision_digits=precision): line.qty_to_invoice = qty else: line.qty_to_invoice = 0.0 else: line.qty_to_invoice = line.product_qty - line.qty_invoiced - @api.depends('order_id.state', 'move_ids.state', 'product_qty') + @api.depends('move_ids.state', 'move_ids.product_uom', + 'move_ids.product_uom_qty') def _compute_qty_to_receive(self): for line in self: total = 0.0 @@ -61,29 +65,39 @@ def _compute_qty_to_receive(self): @api.model def _search_qty_to_invoice(self, operator, value): - po_line_obj = self.env['purchase.order.line'] res = [] - po_lines = po_line_obj.search( - [('qty_to_invoice', operator, value)]) - order_ids = po_lines.mapped('order_id') - res.append(('id', 'in', order_ids.ids)) + order_ids = [] + # To evaluate the operation 'is equal to', change the operator value + if operator == '=': + operator = '==' + for po in self.search([]): + qty_to_invoice = sum(po.mapped('order_line.qty_to_invoice')) + flag = safe_eval(str(qty_to_invoice) + operator + + str(value)) + if flag: + order_ids.append(po.id) + res.append(('id', 'in', order_ids)) return res @api.model def _search_qty_to_receive(self, operator, value): - po_line_obj = self.env['purchase.order.line'] res = [] - po_lines = po_line_obj.search( - [('qty_to_receive', operator, value)]) - order_ids = po_lines.mapped('order_id') - res.append(('id', 'in', order_ids.ids)) + order_ids = [] + # To evaluate the operation 'is equal to', change the operator value + if operator == '=': + operator = '==' + for po in self.search([]): + qty_to_receive = sum(po.mapped('order_line.qty_to_receive')) + flag = safe_eval(str(qty_to_receive) + operator + + str(value)) + if flag: + order_ids.append(po.id) + res.append(('id', 'in', order_ids)) return res qty_to_invoice = fields.Float(compute='_compute_qty_to_invoice', search='_search_qty_to_invoice', - string="Qty to Bill", - default=0.0) + string="Qty to Bill") qty_to_receive = fields.Float(compute='_compute_qty_to_receive', search='_search_qty_to_receive', - string="Qty to Receive", - default=0.0) + string="Qty to Receive") diff --git a/purchase_open_qty/static/description/index.html b/purchase_open_qty/static/description/index.html index 30525b47b89..2be04af026c 100644 --- a/purchase_open_qty/static/description/index.html +++ b/purchase_open_qty/static/description/index.html @@ -367,7 +367,7 @@

Purchase Open Qty

!! 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 allows purchase users to identify what are the purchase orders that currently have quantities pending to invoice or to receive.

Table of contents

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

@@ -417,7 +417,7 @@

Maintainers

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

-

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

+

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

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

diff --git a/purchase_open_qty/tests/test_purchase_open_qty.py b/purchase_open_qty/tests/test_purchase_open_qty.py index cba1bad2e40..8f2b795675b 100644 --- a/purchase_open_qty/tests/test_purchase_open_qty.py +++ b/purchase_open_qty/tests/test_purchase_open_qty.py @@ -13,7 +13,6 @@ def setUp(self): partner_model = self.env['res.partner'] prod_model = self.env['product.product'] analytic_account_model = self.env['account.analytic.account'] - self.product_uom_model = self.env['product.uom'] # partners pa_dict = { @@ -39,8 +38,8 @@ def setUp(self): 'partner_id': self.partner.id, } self.purchase_order_1 = self.purchase_order_model.create(po_dict) - uom_id = self.product_uom_model.search([ - ('name', '=', 'Unit(s)')])[0].id + uom_id = prod_model.uom_id.search([ + ('name', '=', 'Unit(s)')], limit=1).id pr_dict = { 'name': 'Product Test', 'uom_id': uom_id, @@ -107,10 +106,14 @@ def test_compute_qty_to_invoice_and_receive(self): # Now we receive the products for picking in self.purchase_order_2.picking_ids: - picking.force_assign() + picking.action_confirm() picking.move_lines.write({'quantity_done': 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, @@ -121,8 +124,42 @@ def test_compute_qty_to_invoice_and_receive(self): "Expected 0 as qty_to_receive in the PO") def test_search_qty_to_invoice_and_receive(self): - found = self.purchase_order_model.search( - ['|', ('qty_to_invoice', '>', 0.0), ('qty_to_receive', '>', 0.0)]) + + # Ordered order + found_invoice1 = self.purchase_order_1._search_qty_to_invoice( + '=', + '5.0') + self.assertTrue( + self.purchase_order_1.id in found_invoice1[0][2], + 'Expected PO %s in POs %s' % (self.purchase_order_1.id, + found_invoice1[0][2])) + # Delivered order + found_invoice2 = self.purchase_order_2._search_qty_to_invoice( + '=', + '0.0') + self.assertTrue( + self.purchase_order_2.id in found_invoice2[0][2], + 'Expected PO %s in POs %s' % (self.purchase_order_2.id, + found_invoice1[0][2])) + + # Ordered order + found_receive1 = self.purchase_order_1._search_qty_to_receive( + '=', + '5.0' + ) + self.assertTrue( + self.purchase_order_1.id in found_receive1[0][2], + 'Expected PO %s in POs %s' % (self.purchase_order_1.id, + found_receive1[0][2]) + ) + + # Delivered order + found_receive2 = self.purchase_order_2._search_qty_to_receive( + '=', + '5.0' + ) self.assertTrue( - self.purchase_order_1.id in found.ids, - 'Expected PO %s in POs %s' % (self.purchase_order_1.id, found.ids)) + self.purchase_order_2.id in found_receive2[0][2], + 'Expected PO %s in POs %s' % (self.purchase_order_2.id, + found_receive2[0][2]) + ) diff --git a/purchase_open_qty/views/purchase_view.xml b/purchase_open_qty/views/purchase_view.xml index 1cc5e4ee7eb..8f2016cc62b 100644 --- a/purchase_open_qty/views/purchase_view.xml +++ b/purchase_open_qty/views/purchase_view.xml @@ -1,16 +1,19 @@ + + + purchase.order.form -- open qty fields purchase.order - - - - - - + + + + + + From 18a317d5897b16407fa036cb4fea0c50ec052818 Mon Sep 17 00:00:00 2001 From: Jordi Ballester Alomar Date: Wed, 3 Jul 2019 00:09:26 +0200 Subject: [PATCH 10/48] [purchase_open_qty] introduces boolean fields to make it easier to find orders with pending (or not pending) quantity to receive/invoice. --- purchase_open_qty/i18n/purchase_open_qty.pot | 27 ++++-- purchase_open_qty/models/purchase_order.py | 89 +++++++++++-------- .../tests/test_purchase_open_qty.py | 50 +++-------- purchase_open_qty/views/purchase_view.xml | 8 +- 4 files changed, 85 insertions(+), 89 deletions(-) diff --git a/purchase_open_qty/i18n/purchase_open_qty.pot b/purchase_open_qty/i18n/purchase_open_qty.pot index f43e5639d58..f3b6ba4217c 100644 --- a/purchase_open_qty/i18n/purchase_open_qty.pot +++ b/purchase_open_qty/i18n/purchase_open_qty.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 11.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" @@ -14,14 +14,16 @@ msgstr "" "Plural-Forms: \n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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 "" @@ -36,14 +38,21 @@ msgid "Purchase Order Line" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_invoice msgid "Qty to Bill" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" + diff --git a/purchase_open_qty/models/purchase_order.py b/purchase_open_qty/models/purchase_order.py index bec34e89cda..67a5ab514fa 100644 --- a/purchase_open_qty/models/purchase_order.py +++ b/purchase_open_qty/models/purchase_order.py @@ -2,9 +2,8 @@ # (http://www.eficent.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -from odoo import api, fields, models +from odoo import api, fields, models, _ from odoo.tools import float_compare -from odoo.tools.safe_eval import safe_eval import odoo.addons.decimal_precision as dp @@ -57,47 +56,61 @@ class PurchaseOrder(models.Model): def _compute_qty_to_invoice(self): for po in self: - po.qty_to_invoice = sum(po.mapped('order_line.qty_to_invoice')) + qty_to_invoice = sum(po.mapped('order_line.qty_to_invoice')) + po.pending_qty_to_invoice = qty_to_invoice > 0.0 + po.qty_to_invoice = qty_to_invoice def _compute_qty_to_receive(self): for po in self: - po.qty_to_receive = sum(po.mapped('order_line.qty_to_receive')) + 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_qty_to_invoice(self, operator, value): - res = [] - order_ids = [] - # To evaluate the operation 'is equal to', change the operator value - if operator == '=': - operator = '==' - for po in self.search([]): - qty_to_invoice = sum(po.mapped('order_line.qty_to_invoice')) - flag = safe_eval(str(qty_to_invoice) + operator + - str(value)) - if flag: - order_ids.append(po.id) - res.append(('id', 'in', order_ids)) - return res + def _search_pending_qty_to_receive(self, operator, value): + if operator != '=' or not isinstance(value, bool): + raise ValueError(_("Unsupported search operator")) + 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 [('id', 'in', orders.ids)] + else: + return [('id', 'not in', orders.ids)] @api.model - def _search_qty_to_receive(self, operator, value): - res = [] - order_ids = [] - # To evaluate the operation 'is equal to', change the operator value - if operator == '=': - operator = '==' - for po in self.search([]): - qty_to_receive = sum(po.mapped('order_line.qty_to_receive')) - flag = safe_eval(str(qty_to_receive) + operator + - str(value)) - if flag: - order_ids.append(po.id) - res.append(('id', 'in', order_ids)) - return res + def _search_pending_qty_to_invoice(self, operator, value): + if operator != '=' or not isinstance(value, bool): + raise ValueError(_("Unsupported search operator")) + 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 [('id', 'in', orders.ids)] + else: + return [('id', 'not in', orders.ids)] - qty_to_invoice = fields.Float(compute='_compute_qty_to_invoice', - search='_search_qty_to_invoice', - string="Qty to Bill") - qty_to_receive = fields.Float(compute='_compute_qty_to_receive', - search='_search_qty_to_receive', - string="Qty to Receive") + qty_to_invoice = fields.Float( + compute='_compute_qty_to_invoice', + search='_search_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', + search='_search_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/tests/test_purchase_open_qty.py b/purchase_open_qty/tests/test_purchase_open_qty.py index 8f2b795675b..9c4e4c83a70 100644 --- a/purchase_open_qty/tests/test_purchase_open_qty.py +++ b/purchase_open_qty/tests/test_purchase_open_qty.py @@ -124,42 +124,16 @@ def test_compute_qty_to_invoice_and_receive(self): "Expected 0 as qty_to_receive in the PO") def test_search_qty_to_invoice_and_receive(self): - - # Ordered order - found_invoice1 = self.purchase_order_1._search_qty_to_invoice( - '=', - '5.0') - self.assertTrue( - self.purchase_order_1.id in found_invoice1[0][2], - 'Expected PO %s in POs %s' % (self.purchase_order_1.id, - found_invoice1[0][2])) - # Delivered order - found_invoice2 = self.purchase_order_2._search_qty_to_invoice( - '=', - '0.0') - self.assertTrue( - self.purchase_order_2.id in found_invoice2[0][2], - 'Expected PO %s in POs %s' % (self.purchase_order_2.id, - found_invoice1[0][2])) - - # Ordered order - found_receive1 = self.purchase_order_1._search_qty_to_receive( - '=', - '5.0' - ) - self.assertTrue( - self.purchase_order_1.id in found_receive1[0][2], - 'Expected PO %s in POs %s' % (self.purchase_order_1.id, - found_receive1[0][2]) - ) - - # Delivered order - found_receive2 = self.purchase_order_2._search_qty_to_receive( - '=', - '5.0' - ) + found = self.purchase_order_model.search( + ['|', ('pending_qty_to_invoice', '=', True), + ('pending_qty_to_receive', '=', True)]) self.assertTrue( - self.purchase_order_2.id in found_receive2[0][2], - 'Expected PO %s in POs %s' % (self.purchase_order_2.id, - found_receive2[0][2]) - ) + self.purchase_order_1.id in found.ids, + 'Expected PO %s in POs %s' % (self.purchase_order_1.id, 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, + 'Expected PO %s not to be in POs %s' % ( + self.purchase_order_2.id, found.ids)) diff --git a/purchase_open_qty/views/purchase_view.xml b/purchase_open_qty/views/purchase_view.xml index 8f2016cc62b..31bca5735a3 100644 --- a/purchase_open_qty/views/purchase_view.xml +++ b/purchase_open_qty/views/purchase_view.xml @@ -23,8 +23,8 @@ - - + + @@ -36,10 +36,10 @@ + domain="[('pending_qty_to_invoice','=',True)]"/> + domain="[('pending_qty_to_receive','=',True)]"/> From 78fda754fb509f550a252033266b173ea5332c04 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 20 Jul 2019 11:53:03 +0000 Subject: [PATCH 11/48] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: purchase-workflow-12.0/purchase-workflow-12.0-purchase_open_qty Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_open_qty/ --- purchase_open_qty/i18n/de.po | 25 +++++++++++++------ purchase_open_qty/i18n/es.po | 25 +++++++++++++------ purchase_open_qty/i18n/es_MX.po | 25 +++++++++++++------ purchase_open_qty/i18n/es_PE.po | 25 +++++++++++++------ purchase_open_qty/i18n/fi.po | 25 +++++++++++++------ purchase_open_qty/i18n/fr.po | 25 +++++++++++++------ purchase_open_qty/i18n/fr_BE.po | 25 +++++++++++++------ purchase_open_qty/i18n/gl.po | 25 +++++++++++++------ purchase_open_qty/i18n/hr.po | 25 +++++++++++++------ purchase_open_qty/i18n/it.po | 25 +++++++++++++------ purchase_open_qty/i18n/nl.po | 25 +++++++++++++------ purchase_open_qty/i18n/nl_NL.po | 25 +++++++++++++------ purchase_open_qty/i18n/pt_BR.po | 25 +++++++++++++------ purchase_open_qty/i18n/pt_PT.po | 25 +++++++++++++------ purchase_open_qty/i18n/ro.po | 25 +++++++++++++------ purchase_open_qty/i18n/sl.po | 25 +++++++++++++------ purchase_open_qty/i18n/vi_VN.po | 25 +++++++++++++------ .../static/description/index.html | 2 +- 18 files changed, 290 insertions(+), 137 deletions(-) diff --git a/purchase_open_qty/i18n/de.po b/purchase_open_qty/i18n/de.po index 8c674d29372..2f99872602a 100644 --- a/purchase_open_qty/i18n/de.po +++ b/purchase_open_qty/i18n/de.po @@ -19,14 +19,16 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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 "" @@ -41,13 +43,20 @@ msgid "Purchase Order Line" msgstr "Bestellposition" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_invoice msgid "Qty to Bill" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/es.po b/purchase_open_qty/i18n/es.po index 12e5281a0f9..47700bc47cf 100644 --- a/purchase_open_qty/i18n/es.po +++ b/purchase_open_qty/i18n/es.po @@ -19,14 +19,16 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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 "" @@ -41,13 +43,20 @@ msgid "Purchase Order Line" msgstr "Línea orden de compra" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_invoice msgid "Qty to Bill" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/es_MX.po b/purchase_open_qty/i18n/es_MX.po index af62db9ec62..09857da858a 100644 --- a/purchase_open_qty/i18n/es_MX.po +++ b/purchase_open_qty/i18n/es_MX.po @@ -20,14 +20,16 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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 "" @@ -42,13 +44,20 @@ 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_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_invoice msgid "Qty to Bill" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/es_PE.po b/purchase_open_qty/i18n/es_PE.po index 885d08e95e0..6da1276eac4 100644 --- a/purchase_open_qty/i18n/es_PE.po +++ b/purchase_open_qty/i18n/es_PE.po @@ -20,14 +20,16 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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 "" @@ -42,13 +44,20 @@ 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_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_invoice msgid "Qty to Bill" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/fi.po b/purchase_open_qty/i18n/fi.po index 59ee03543e9..f439ae573c2 100644 --- a/purchase_open_qty/i18n/fi.po +++ b/purchase_open_qty/i18n/fi.po @@ -19,14 +19,16 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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 "" @@ -41,13 +43,20 @@ msgid "Purchase Order Line" msgstr "Ostotilausrivi" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_invoice msgid "Qty to Bill" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/fr.po b/purchase_open_qty/i18n/fr.po index 992700f5a65..5d538176e9e 100644 --- a/purchase_open_qty/i18n/fr.po +++ b/purchase_open_qty/i18n/fr.po @@ -19,14 +19,16 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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 "" @@ -41,13 +43,20 @@ 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_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_invoice msgid "Qty to Bill" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/fr_BE.po b/purchase_open_qty/i18n/fr_BE.po index b45cdda777d..e1becd28747 100644 --- a/purchase_open_qty/i18n/fr_BE.po +++ b/purchase_open_qty/i18n/fr_BE.po @@ -20,14 +20,16 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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 "" @@ -42,13 +44,20 @@ msgid "Purchase Order Line" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_invoice msgid "Qty to Bill" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/gl.po b/purchase_open_qty/i18n/gl.po index 25acd1629da..5648babba04 100644 --- a/purchase_open_qty/i18n/gl.po +++ b/purchase_open_qty/i18n/gl.po @@ -19,14 +19,16 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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 "" @@ -41,13 +43,20 @@ msgid "Purchase Order Line" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_invoice msgid "Qty to Bill" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/hr.po b/purchase_open_qty/i18n/hr.po index 48b1611ad77..0d197a224e2 100644 --- a/purchase_open_qty/i18n/hr.po +++ b/purchase_open_qty/i18n/hr.po @@ -20,14 +20,16 @@ msgstr "" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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" @@ -42,13 +44,20 @@ 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_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__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_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/it.po b/purchase_open_qty/i18n/it.po index 5312f772b4e..6ecf2261433 100644 --- a/purchase_open_qty/i18n/it.po +++ b/purchase_open_qty/i18n/it.po @@ -19,14 +19,16 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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 "" @@ -41,13 +43,20 @@ msgid "Purchase Order Line" msgstr "Riga Ordine d'Acquisto" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_invoice msgid "Qty to Bill" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/nl.po b/purchase_open_qty/i18n/nl.po index 659c39c361f..be3753fde98 100644 --- a/purchase_open_qty/i18n/nl.po +++ b/purchase_open_qty/i18n/nl.po @@ -19,14 +19,16 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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 "" @@ -41,13 +43,20 @@ msgid "Purchase Order Line" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_invoice msgid "Qty to Bill" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/nl_NL.po b/purchase_open_qty/i18n/nl_NL.po index 4ea33076a70..61789cbad22 100644 --- a/purchase_open_qty/i18n/nl_NL.po +++ b/purchase_open_qty/i18n/nl_NL.po @@ -20,14 +20,16 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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 "" @@ -42,13 +44,20 @@ msgid "Purchase Order Line" msgstr "Inkooporderregel" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_invoice msgid "Qty to Bill" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/pt_BR.po b/purchase_open_qty/i18n/pt_BR.po index b81f980811c..7448efb5274 100644 --- a/purchase_open_qty/i18n/pt_BR.po +++ b/purchase_open_qty/i18n/pt_BR.po @@ -20,14 +20,16 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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 "" @@ -42,13 +44,20 @@ 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_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_invoice msgid "Qty to Bill" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/pt_PT.po b/purchase_open_qty/i18n/pt_PT.po index 74f66408016..c26ecb42870 100644 --- a/purchase_open_qty/i18n/pt_PT.po +++ b/purchase_open_qty/i18n/pt_PT.po @@ -20,14 +20,16 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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 "" @@ -42,13 +44,20 @@ 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_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_invoice msgid "Qty to Bill" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/ro.po b/purchase_open_qty/i18n/ro.po index 3d64fa093ba..615ae3c7a35 100644 --- a/purchase_open_qty/i18n/ro.po +++ b/purchase_open_qty/i18n/ro.po @@ -20,14 +20,16 @@ msgstr "" "2:1));\n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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 "" @@ -42,13 +44,20 @@ 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_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_invoice msgid "Qty to Bill" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/sl.po b/purchase_open_qty/i18n/sl.po index 253b9e7102b..73f6e6881e2 100644 --- a/purchase_open_qty/i18n/sl.po +++ b/purchase_open_qty/i18n/sl.po @@ -20,14 +20,16 @@ msgstr "" "%100==4 ? 2 : 3);\n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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 "" @@ -42,13 +44,20 @@ msgid "Purchase Order Line" msgstr "Postavka nabavnega naloga" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_invoice msgid "Qty to Bill" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/i18n/vi_VN.po b/purchase_open_qty/i18n/vi_VN.po index 3868bdfb7f8..fbac6ee6944 100644 --- a/purchase_open_qty/i18n/vi_VN.po +++ b/purchase_open_qty/i18n/vi_VN.po @@ -20,14 +20,16 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: purchase_open_qty -#: model:ir.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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.ui.view,arch_db:purchase_open_qty.purchase_order_line_search -#: model:ir.ui.view,arch_db:purchase_open_qty.view_purchase_order_filter +#: 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 "" @@ -42,13 +44,20 @@ msgid "Purchase Order Line" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_invoice -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order__qty_to_invoice +#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line__qty_to_invoice msgid "Qty to Bill" msgstr "" #. module: purchase_open_qty -#: model:ir.model.fields,field_description:purchase_open_qty.field_purchase_order_line_qty_to_receive -#: 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__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 +#: code:addons/purchase_open_qty/models/purchase_order.py:72 +#: code:addons/purchase_open_qty/models/purchase_order.py:85 +#, python-format +msgid "Unsupported search operator" +msgstr "" diff --git a/purchase_open_qty/static/description/index.html b/purchase_open_qty/static/description/index.html index 2be04af026c..985d8b398a8 100644 --- a/purchase_open_qty/static/description/index.html +++ b/purchase_open_qty/static/description/index.html @@ -3,7 +3,7 @@ - + Purchase Open Qty