Skip to content

Commit

Permalink
[MIG] account_invoice_fixed_discount: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PieterPaulussen committed Jul 21, 2023
1 parent 2350456 commit 1469dc0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
2 changes: 1 addition & 1 deletion account_invoice_fixed_discount/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Account Fixed Discount",
"summary": "Allows to apply fixed amount discounts in invoices.",
"version": "15.0.1.0.0",
"version": "16.0.1.0.0",
"category": "Accounting & Finance",
"website": "https://github.com/OCA/account-invoicing",
"author": "ForgeFlow, Odoo Community Association (OCA)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,21 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)

from odoo.exceptions import ValidationError
from odoo.tests import TransactionCase
from odoo.tests import SavepointCase


class TestInvoiceFixedDiscount(TransactionCase):
class TestInvoiceFixedDiscount(SavepointCase):
@classmethod
def setUpClass(cls):
super(TestInvoiceFixedDiscount, cls).setUpClass()
cls.partner = cls.env["res.partner"].create({"name": "Test"})
cls.product = cls.env.ref("product.product_product_3")
cls.account = cls.env["account.account"].search(
[
(
"user_type_id",
"=",
cls.env.ref("account.data_account_type_revenue").id,
)
],
[("account_type", "=", "income")],
limit=1,
)
type_current_liability = cls.env.ref(
"account.data_account_type_current_liabilities"
)
cls.output_vat_acct = cls.env["account.account"].create(
{"name": "10", "code": "10", "user_type_id": type_current_liability.id}
{"name": "10", "code": "10", "account_type": "liability_current"}
)
cls.tax_group_vat = cls.env["account.tax.group"].create({"name": "VAT"})
cls.vat = cls.env["account.tax"].create(
Expand Down
6 changes: 0 additions & 6 deletions account_invoice_fixed_discount/views/account_move_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
>
<field name="discount_fixed" groups="base.group_no_one" />
</xpath>
<xpath
expr="//field[@name='line_ids']/tree/field[@name='discount']"
position="before"
>
<field name="discount_fixed" invisible="1" />
</xpath>
</field>
</record>
</odoo>

0 comments on commit 1469dc0

Please sign in to comment.