Skip to content

Commit 953efd7

Browse files
pedrobaezasergio-teruel
authored andcommitted
[MIG] account_invoice_production_lot: Migration to 11.0
* Standard procedure * Adapt code to new stock data model * Adapt tests * Fix README layout * Remove coding lines in .py
1 parent e49f20c commit 953efd7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+453
-225
lines changed

account_invoice_production_lot/README.rst

+14-10
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,20 @@ Invoice Production Lots
1414
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1515
:alt: License: AGPL-3
1616
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--invoice--reporting-lightgray.png?logo=github
17-
:target: https://github.com/OCA/account-invoice-reporting/tree/10.0/account_invoice_production_lot
17+
:target: https://github.com/OCA/account-invoice-reporting/tree/11.0/account_invoice_production_lot
1818
:alt: OCA/account-invoice-reporting
1919
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20-
:target: https://translation.odoo-community.org/projects/account-invoice-reporting-10-0/account-invoice-reporting-10-0-account_invoice_production_lot
20+
:target: https://translation.odoo-community.org/projects/account-invoice-reporting-11-0/account-invoice-reporting-11-0-account_invoice_production_lot
2121
:alt: Translate me on Weblate
2222
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
23-
:target: https://runbot.odoo-community.org/runbot/94/10.0
23+
:target: https://runbot.odoo-community.org/runbot/94/11.0
2424
:alt: Try me on Runbot
2525

2626
|badge1| |badge2| |badge3| |badge4| |badge5|
2727

28-
This module shows, for each (customer) invoice line, the delivered production lots that will also be displayed
29-
on the invoice report with their corresponding delivered quantities in case the **Tracking** has been set to **By Lots**.
28+
This module shows, for each (customer) invoice line, the delivered production
29+
lots that will be also displayed on the invoice report with their corresponding
30+
delivered quantities in case the **Tracking** has been set to **By Lots**.
3031

3132
**Table of contents**
3233

@@ -57,7 +58,7 @@ Bug Tracker
5758
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoice-reporting/issues>`_.
5859
In case of trouble, please check there if your issue has already been reported.
5960
If you spotted it first, help us smashing it by providing a detailed and welcomed
60-
`feedback <https://github.com/OCA/account-invoice-reporting/issues/new?body=module:%20account_invoice_production_lot%0Aversion:%2010.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
61+
`feedback <https://github.com/OCA/account-invoice-reporting/issues/new?body=module:%20account_invoice_production_lot%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6162

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

@@ -70,13 +71,16 @@ Authors
7071
* Agile Business Group
7172
* Tecnativa
7273

73-
Other credits
74-
~~~~~~~~~~~~~
74+
Contributors
75+
~~~~~~~~~~~~
7576

7677
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
7778
* Alessio Gerace <alessio.gerace@agilebg.com>
78-
* Vicent Cubells <vicent.cubells@tecnativa.com>
7979
* Alex Comba <alex.comba@agilebg.com>
80+
* `Tecnativa <https://www.tecnativa.com>`__:
81+
82+
* Vicent Cubells
83+
* Pedro M. Baeza
8084

8185
Maintainers
8286
~~~~~~~~~~~
@@ -91,6 +95,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
9195
mission is to support the collaborative development of Odoo features and
9296
promote its widespread use.
9397

94-
This module is part of the `OCA/account-invoice-reporting <https://github.com/OCA/account-invoice-reporting/tree/10.0/account_invoice_production_lot>`_ project on GitHub.
98+
This module is part of the `OCA/account-invoice-reporting <https://github.com/OCA/account-invoice-reporting/tree/11.0/account_invoice_production_lot>`_ project on GitHub.
9599

96100
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
32

43
from . import models
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2011 Domsense s.r.l. <http://www.domsense.com>
32
# Copyright 2013 Lorenzo Battistini <lorenzo.battistini@agilebg.com>
43
# Copyright 2017 Tecnativa - Vicent Cubells
5-
# Copyright 2017 Tecnativa - Pedro M. Baeza
4+
# Copyright 2017-2018 Tecnativa - Pedro M. Baeza
65
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
76

87
{
98
"name": "Invoice Production Lots",
10-
"version": "10.0.1.2.0",
9+
"version": "11.0.1.0.0",
1110
"author": "Agile Business Group,"
1211
"Tecnativa,"
1312
"Odoo Community Association (OCA)",
@@ -16,7 +15,7 @@
1615
'license': 'AGPL-3',
1716
'category': 'Accounting & Finance',
1817
"depends": [
19-
"account_accountant",
18+
"account_invoicing",
2019
"sale_stock",
2120
"stock_picking_invoice_link",
2221
],
@@ -26,6 +25,6 @@
2625
],
2726
'demo': [
2827
'demo/sale.xml',
29-
],
28+
],
3029
'installable': True,
3130
}

account_invoice_production_lot/i18n/account_invoice_production_lot.pot

+10-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 10.0\n"
7+
"Project-Id-Version: Odoo Server 11.0\n"
88
"Report-Msgid-Bugs-To: \n"
99
"Last-Translator: <>\n"
1010
"Language-Team: \n"
@@ -36,8 +36,9 @@ msgid "Invoice Line"
3636
msgstr ""
3737

3838
#. module: account_invoice_production_lot
39-
#: model:ir.model.fields,field_description:account_invoice_production_lot.field_account_invoice_line_order_line_ids
40-
msgid "Order Lines"
39+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:44
40+
#, python-format
41+
msgid "Lot"
4142
msgstr ""
4243

4344
#. module: account_invoice_production_lot
@@ -46,6 +47,12 @@ msgstr ""
4647
msgid "Production Lots"
4748
msgstr ""
4849

50+
#. module: account_invoice_production_lot
51+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:40
52+
#, python-format
53+
msgid "S/N"
54+
msgstr ""
55+
4956
#. module: account_invoice_production_lot
5057
#: model:stock.location,name:account_invoice_production_lot.location_opening
5158
msgid "opening"

account_invoice_production_lot/i18n/ar.po

+9-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ msgid "Invoice Line"
4747
msgstr "خط الفاتورة"
4848

4949
#. module: account_invoice_production_lot
50-
#: model:ir.model.fields,field_description:account_invoice_production_lot.field_account_invoice_line_order_line_ids
51-
msgid "Order Lines"
50+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:44
51+
#, python-format
52+
msgid "Lot"
5253
msgstr ""
5354

5455
#. module: account_invoice_production_lot
@@ -57,6 +58,12 @@ msgstr ""
5758
msgid "Production Lots"
5859
msgstr ""
5960

61+
#. module: account_invoice_production_lot
62+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:40
63+
#, python-format
64+
msgid "S/N"
65+
msgstr ""
66+
6067
#. module: account_invoice_production_lot
6168
#: model:stock.location,name:account_invoice_production_lot.location_opening
6269
msgid "opening"

account_invoice_production_lot/i18n/bs.po

+9-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ msgid "Invoice Line"
4747
msgstr "Stavka fakture"
4848

4949
#. module: account_invoice_production_lot
50-
#: model:ir.model.fields,field_description:account_invoice_production_lot.field_account_invoice_line_order_line_ids
51-
msgid "Order Lines"
50+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:44
51+
#, python-format
52+
msgid "Lot"
5253
msgstr ""
5354

5455
#. module: account_invoice_production_lot
@@ -57,6 +58,12 @@ msgstr ""
5758
msgid "Production Lots"
5859
msgstr ""
5960

61+
#. module: account_invoice_production_lot
62+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:40
63+
#, python-format
64+
msgid "S/N"
65+
msgstr ""
66+
6067
#. module: account_invoice_production_lot
6168
#: model:stock.location,name:account_invoice_production_lot.location_opening
6269
msgid "opening"

account_invoice_production_lot/i18n/ca.po

+9-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ msgid "Invoice Line"
4646
msgstr "Línia factura"
4747

4848
#. module: account_invoice_production_lot
49-
#: model:ir.model.fields,field_description:account_invoice_production_lot.field_account_invoice_line_order_line_ids
50-
msgid "Order Lines"
49+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:44
50+
#, python-format
51+
msgid "Lot"
5152
msgstr ""
5253

5354
#. module: account_invoice_production_lot
@@ -56,6 +57,12 @@ msgstr ""
5657
msgid "Production Lots"
5758
msgstr ""
5859

60+
#. module: account_invoice_production_lot
61+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:40
62+
#, python-format
63+
msgid "S/N"
64+
msgstr ""
65+
5966
#. module: account_invoice_production_lot
6067
#: model:stock.location,name:account_invoice_production_lot.location_opening
6168
msgid "opening"

account_invoice_production_lot/i18n/cs.po

+9-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ msgid "Invoice Line"
4646
msgstr "Řádek faktury"
4747

4848
#. module: account_invoice_production_lot
49-
#: model:ir.model.fields,field_description:account_invoice_production_lot.field_account_invoice_line_order_line_ids
50-
msgid "Order Lines"
49+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:44
50+
#, python-format
51+
msgid "Lot"
5152
msgstr ""
5253

5354
#. module: account_invoice_production_lot
@@ -56,6 +57,12 @@ msgstr ""
5657
msgid "Production Lots"
5758
msgstr ""
5859

60+
#. module: account_invoice_production_lot
61+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:40
62+
#, python-format
63+
msgid "S/N"
64+
msgstr ""
65+
5966
#. module: account_invoice_production_lot
6067
#: model:stock.location,name:account_invoice_production_lot.location_opening
6168
msgid "opening"

account_invoice_production_lot/i18n/de.po

+9-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ msgid "Invoice Line"
4646
msgstr "Rechnungsposition"
4747

4848
#. module: account_invoice_production_lot
49-
#: model:ir.model.fields,field_description:account_invoice_production_lot.field_account_invoice_line_order_line_ids
50-
msgid "Order Lines"
49+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:44
50+
#, python-format
51+
msgid "Lot"
5152
msgstr ""
5253

5354
#. module: account_invoice_production_lot
@@ -56,6 +57,12 @@ msgstr ""
5657
msgid "Production Lots"
5758
msgstr ""
5859

60+
#. module: account_invoice_production_lot
61+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:40
62+
#, python-format
63+
msgid "S/N"
64+
msgstr ""
65+
5966
#. module: account_invoice_production_lot
6067
#: model:stock.location,name:account_invoice_production_lot.location_opening
6168
msgid "opening"

account_invoice_production_lot/i18n/en_GB.po

+9-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ msgid "Invoice Line"
4747
msgstr "Invoice Line"
4848

4949
#. module: account_invoice_production_lot
50-
#: model:ir.model.fields,field_description:account_invoice_production_lot.field_account_invoice_line_order_line_ids
51-
msgid "Order Lines"
50+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:44
51+
#, python-format
52+
msgid "Lot"
5253
msgstr ""
5354

5455
#. module: account_invoice_production_lot
@@ -57,6 +58,12 @@ msgstr ""
5758
msgid "Production Lots"
5859
msgstr ""
5960

61+
#. module: account_invoice_production_lot
62+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:40
63+
#, python-format
64+
msgid "S/N"
65+
msgstr ""
66+
6067
#. module: account_invoice_production_lot
6168
#: model:stock.location,name:account_invoice_production_lot.location_opening
6269
msgid "opening"

account_invoice_production_lot/i18n/es.po

+13-3
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,27 @@ msgid "Invoice Line"
4444
msgstr "Linea de factura"
4545

4646
#. module: account_invoice_production_lot
47-
#: model:ir.model.fields,field_description:account_invoice_production_lot.field_account_invoice_line_order_line_ids
48-
msgid "Order Lines"
49-
msgstr "Lineas de pedido"
47+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:44
48+
#, python-format
49+
msgid "Lot"
50+
msgstr ""
5051

5152
#. module: account_invoice_production_lot
5253
#: model:ir.model.fields,field_description:account_invoice_production_lot.field_account_invoice_line_prod_lot_ids
5354
#: model:ir.ui.view,arch_db:account_invoice_production_lot.view_invoice_line_form_prod_lots
5455
msgid "Production Lots"
5556
msgstr "Lotes/Nº de serie"
5657

58+
#. module: account_invoice_production_lot
59+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:40
60+
#, python-format
61+
msgid "S/N"
62+
msgstr ""
63+
5764
#. module: account_invoice_production_lot
5865
#: model:stock.location,name:account_invoice_production_lot.location_opening
5966
msgid "opening"
6067
msgstr ""
68+
69+
#~ msgid "Order Lines"
70+
#~ msgstr "Lineas de pedido"

account_invoice_production_lot/i18n/es_CR.po

+9-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ msgid "Invoice Line"
4747
msgstr "Línea de factura"
4848

4949
#. module: account_invoice_production_lot
50-
#: model:ir.model.fields,field_description:account_invoice_production_lot.field_account_invoice_line_order_line_ids
51-
msgid "Order Lines"
50+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:44
51+
#, python-format
52+
msgid "Lot"
5253
msgstr ""
5354

5455
#. module: account_invoice_production_lot
@@ -57,6 +58,12 @@ msgstr ""
5758
msgid "Production Lots"
5859
msgstr ""
5960

61+
#. module: account_invoice_production_lot
62+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:40
63+
#, python-format
64+
msgid "S/N"
65+
msgstr ""
66+
6067
#. module: account_invoice_production_lot
6168
#: model:stock.location,name:account_invoice_production_lot.location_opening
6269
msgid "opening"

account_invoice_production_lot/i18n/es_EC.po

+9-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ msgid "Invoice Line"
4747
msgstr "Detalle de Factura"
4848

4949
#. module: account_invoice_production_lot
50-
#: model:ir.model.fields,field_description:account_invoice_production_lot.field_account_invoice_line_order_line_ids
51-
msgid "Order Lines"
50+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:44
51+
#, python-format
52+
msgid "Lot"
5253
msgstr ""
5354

5455
#. module: account_invoice_production_lot
@@ -57,6 +58,12 @@ msgstr ""
5758
msgid "Production Lots"
5859
msgstr ""
5960

61+
#. module: account_invoice_production_lot
62+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:40
63+
#, python-format
64+
msgid "S/N"
65+
msgstr ""
66+
6067
#. module: account_invoice_production_lot
6168
#: model:stock.location,name:account_invoice_production_lot.location_opening
6269
msgid "opening"

account_invoice_production_lot/i18n/es_MX.po

+9-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ msgid "Invoice Line"
4747
msgstr "Línea de factura"
4848

4949
#. module: account_invoice_production_lot
50-
#: model:ir.model.fields,field_description:account_invoice_production_lot.field_account_invoice_line_order_line_ids
51-
msgid "Order Lines"
50+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:44
51+
#, python-format
52+
msgid "Lot"
5253
msgstr ""
5354

5455
#. module: account_invoice_production_lot
@@ -57,6 +58,12 @@ msgstr ""
5758
msgid "Production Lots"
5859
msgstr ""
5960

61+
#. module: account_invoice_production_lot
62+
#: code:addons/account_invoice_production_lot/models/account_invoice.py:40
63+
#, python-format
64+
msgid "S/N"
65+
msgstr ""
66+
6067
#. module: account_invoice_production_lot
6168
#: model:stock.location,name:account_invoice_production_lot.location_opening
6269
msgid "opening"

0 commit comments

Comments
 (0)