Skip to content

Commit

Permalink
[MIG] l10n_br_account_nfe: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Sep 6, 2024
1 parent d0eeee1 commit 80049b4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion l10n_br_account_nfe/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"author": "Engenere," "Akretion," "Odoo Community Association (OCA)",
"maintainers": ["antoniospneto", "felipemotter", "mbcosta"],
"website": "https://github.com/OCA/l10n-brazil",
"version": "15.0.1.0.0",
"version": "16.0.1.0.0",
"development_status": "Beta",
"depends": [
"l10n_br_nfe",
Expand Down
6 changes: 3 additions & 3 deletions l10n_br_account_nfe/demo/account_invoice_sn_demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<field
name="line_ids"
eval="[(5, 0),
(0, 0, {'value': 'percent', 'value_amount': 33, 'sequence': 500, 'days': 30, 'option': 'day_after_invoice_date'}),
(0, 0, {'value': 'percent', 'value_amount': 33, 'sequence': 500, 'days': 60, 'option': 'day_after_invoice_date'}),
(0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 90, 'option': 'day_after_invoice_date'})
(0, 0, {'value': 'percent', 'value_amount': 33, 'days': 30}),
(0, 0, {'value': 'percent', 'value_amount': 33, 'days': 60}),
(0, 0, {'value': 'balance', 'value_amount': 0.0, 'days': 90})
]"
/>
</record>
Expand Down
4 changes: 2 additions & 2 deletions l10n_br_account_nfe/tests/test_nfce_contingency.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def prepare_account_move_nfce(cls):
"code": "01.1.1.2.2",
"reconcile": 1,
"company_id": cls.env.ref("base.main_company").id,
"user_type_id": cls.env.ref("account.data_account_type_receivable").id,
"account_type": "asset_receivable",
}
)
payable_account_id = cls.env["account.account"].create(
Expand All @@ -36,7 +36,7 @@ def prepare_account_move_nfce(cls):
"code": "01.1.1.2.3",
"reconcile": 1,
"company_id": cls.env.ref("base.main_company").id,
"user_type_id": cls.env.ref("account.data_account_type_payable").id,
"account_type": "liability_payable",
}
)
payment_method = cls.env.ref("account.account_payment_method_manual_in").id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def setUpClass(cls):
cls.invoice_account_id = cls.env["account.account"].create(
{
"company_id": cls.company.id,
"user_type_id": cls.env.ref("account.data_account_type_receivable").id,
"account_type": "asset_receivable",
"code": "RECTEST",
"name": "Test receivable account",
"reconcile": True,
Expand All @@ -63,7 +63,6 @@ def setUpClass(cls):
{
"value": "balance",
"days": 30,
"option": "day_after_invoice_date",
},
)
],
Expand All @@ -73,7 +72,7 @@ def setUpClass(cls):
cls.invoice_line_account_id = cls.env["account.account"].create(
{
"company_id": cls.company.id,
"user_type_id": cls.env.ref("account.data_account_type_revenue").id,
"account_type": "income",
"code": "705070",
"name": "Product revenue account (test)",
}
Expand Down Expand Up @@ -126,7 +125,6 @@ def setUpClass(cls):
)

invoice_vals["invoice_line_ids"].append((0, 0, invoice_line_vals))
del invoice_vals["line_ids"]
cls.invoice = cls.env["account.move"].create(invoice_vals)
cls.invoice.invoice_line_ids._onchange_fiscal_tax_ids()
cls.invoice.invoice_line_ids._onchange_fiscal_operation_line_id()
Expand Down
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ odoo-test-helper # Needed by spec_driven_model
pyopenssl==22.1.0
nfelib<=2.0.7
xmldiff
odoo-addon-l10n_br_account @ git+https://github.com/OCA/l10n-brazil.git@refs/pull/2865/head#subdirectory=setup/l10n_br_account

0 comments on commit 80049b4

Please sign in to comment.