Skip to content

Commit 6b80937

Browse files
committed
[MIG] purchase_triple_discount: Migration to 15.0
1 parent 63d1ca9 commit 6b80937

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

purchase_triple_discount/__manifest__.py

Lines changed: 1 addition & 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": "Purchase Order Triple Discount",
5-
"version": "14.0.1.0.1",
5+
"version": "15.0.1.0.0",
66
"category": "Purchase Management",
77
"author": "Tecnativa," "GRAP," "Odoo Community Association (OCA)",
88
"website": "https://github.com/OCA/purchase-workflow",

purchase_triple_discount/models/purchase_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class PurchaseOrderLine(models.Model):
99
# adding discount2 and discount3 to depends
1010
@api.depends("discount2", "discount3")
1111
def _compute_amount(self):
12-
super()._compute_amount()
12+
return super()._compute_amount()
1313

1414
discount2 = fields.Float(
1515
"Disc. 2 (%)",

purchase_triple_discount/tests/test_purchase_discount.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from odoo.tests.common import Form
77

88

9-
class TestPurchaseOrder(common.SavepointCase):
9+
class TestPurchaseOrder(common.TransactionCase):
1010
@classmethod
1111
def setUpClass(cls):
1212
super(TestPurchaseOrder, cls).setUpClass()

purchase_triple_discount/views/purchase_view.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
expr="//field[@name='order_line']//tree//field[@name='discount']"
1111
position="after"
1212
>
13-
<field name="discount2" />
14-
<field name="discount3" />
13+
<field name="discount2" optional="show" />
14+
<field name="discount3" optional="show" />
1515
</xpath>
1616
<xpath
1717
expr="//field[@name='order_line']//form//field[@name='discount']"

0 commit comments

Comments
 (0)