Skip to content

Commit

Permalink
[MIG][15.0]account_invoice_supplierinfo_update_discount:Migration to …
Browse files Browse the repository at this point in the history
…15.0
  • Loading branch information
bizzappdev committed Jun 5, 2023
1 parent f5a0575 commit 9f62025
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"summary": "In the supplier invoice, automatically update all products "
"whose discount on the line is different from "
"the supplier discount",
"version": "14.0.1.0.0",
"version": "15.0.1.0.0",
"category": "Accounting & Finance",
"website": "https://github.com/OCA/account-invoicing",
"author": "GRAP, Odoo Community Association (OCA)",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright 2018 - Today: GRAP (http://www.grap.coop)
# Copyright Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tests import Form, SavepointCase, tagged
from odoo.tests import Form, TransactionCase, tagged


@tagged("post_install", "-at_install")
class TestAccountInvoiceSupplierInfoDiscount(SavepointCase):
class TestAccountInvoiceSupplierInfoDiscount(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ class WizardUpdateInvoiceSupplierinfoLine(models.TransientModel):
_inherit = "wizard.update.invoice.supplierinfo.line"

current_discount = fields.Float(
string="Current Discount",
digits="Discount",
readonly=True,
)

new_discount = fields.Float(
string="New Discount",
digits="Discount",
required=True,
)
Expand Down

0 comments on commit 9f62025

Please sign in to comment.