Skip to content

Commit 150f82d

Browse files
NICO-SOLUTIONSchaule97
authored andcommitted
[MIG] partner_invoicing_mode_at_shipping: Migration to 17.0
1 parent 8ab7c11 commit 150f82d

File tree

13 files changed

+37
-54
lines changed

13 files changed

+37
-54
lines changed

partner_invoicing_mode_at_shipping/README.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,15 @@ Contributors
6969

7070
- Phuc (Tran Thanh) <[email protected]>
7171

72+
- Nils Coenen <[email protected]>
73+
74+
- Chau Le <[email protected]>
75+
7276
Other credits
7377
-------------
7478

75-
The development of this module has been financially supported by:
79+
The development and migration of this module has been financially
80+
supported by:
7681

7782
- Camptocamp
7883

partner_invoicing_mode_at_shipping/__manifest__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
33
{
44
"name": "Partner Invoicing Mode At Shipping",
5-
"version": "16.0.1.2.0",
5+
"version": "17.0.1.0.0",
66
"summary": "Create invoices automatically when goods are shipped.",
77
"author": "Camptocamp, Odoo Community Association (OCA)",
88
"website": "https://github.com/OCA/account-invoicing",
@@ -13,5 +13,8 @@
1313
"views/res_partner.xml",
1414
],
1515
"depends": ["account", "partner_invoicing_mode", "queue_job", "stock"],
16+
"external_dependencies": {
17+
"python": ["openupgradelib"],
18+
},
1619
"pre_init_hook": "pre_init_hook",
1720
}

partner_invoicing_mode_at_shipping/migrations/16.0.1.1.0/pre-migrate.py

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
from . import res_partner
2-
from . import stock_move
32
from . import stock_picking
43
from . import sale_order

partner_invoicing_mode_at_shipping/models/stock_move.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

partner_invoicing_mode_at_shipping/models/stock_picking.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright 2020 Camptocamp SA
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
33

4-
from odoo import _, models
4+
from odoo import _, api, models
55

66

77
class StockPicking(models.Model):
@@ -27,6 +27,7 @@ def _invoicing_at_shipping_validation(self, invoices):
2727
lambda invoice: invoice.partner_id.invoicing_mode == "at_shipping"
2828
)
2929

30+
@api.model
3031
def _invoicing_at_shipping(self):
3132
self.ensure_one()
3233
sales = self._get_sales_order_to_invoice()

partner_invoicing_mode_at_shipping/readme/CONTRIBUTORS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
> - Thierry Ducrest \<<[email protected]>\>
44
55
- Phuc (Tran Thanh) \<<[email protected]>\>
6+
- Nils Coenen \<<[email protected]>\>
7+
- Chau Le \<<[email protected]>\>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
The development of this module has been financially supported by:
1+
The development and migration of this module has been financially supported by:
22

33
- Camptocamp

partner_invoicing_mode_at_shipping/static/description/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,11 +418,16 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
418418
</li>
419419
<li><p class="first">Phuc (Tran Thanh) &lt;<a class="reference external" href="mailto:phuc&#64;trobz.com">phuc&#64;trobz.com</a>&gt;</p>
420420
</li>
421+
<li><p class="first">Nils Coenen &lt;<a class="reference external" href="mailto:nils.coenen&#64;nico-solutions.de">nils.coenen&#64;nico-solutions.de</a>&gt;</p>
422+
</li>
423+
<li><p class="first">Chau Le &lt;<a class="reference external" href="mailto:chaulb&#64;trobz.com">chaulb&#64;trobz.com</a>&gt;</p>
424+
</li>
421425
</ul>
422426
</div>
423427
<div class="section" id="other-credits">
424428
<h2><a class="toc-backref" href="#toc-entry-5">Other credits</a></h2>
425-
<p>The development of this module has been financially supported by:</p>
429+
<p>The development and migration of this module has been financially
430+
supported by:</p>
426431
<ul class="simple">
427432
<li>Camptocamp</li>
428433
</ul>

partner_invoicing_mode_at_shipping/tests/common.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def setUpClass(cls):
2727
},
2828
)
2929
],
30-
"pricelist_id": cls.env.ref("product.list0").id,
3130
}
3231
)
3332

@@ -51,6 +50,5 @@ def _create_order(cls):
5150
},
5251
)
5352
],
54-
"pricelist_id": cls.env.ref("product.list0").id,
5553
}
5654
)

0 commit comments

Comments
 (0)