Skip to content

Commit

Permalink
[MIG] account_invoice_start_end_dates: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoMaxime committed Oct 10, 2022
1 parent 6c86f95 commit 2e53b7e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion account_invoice_start_end_dates/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{
"name": "Account Invoice Start End Dates",
"version": "15.0.1.0.0",
"version": "16.0.1.0.0",
"category": "Accounting & Finance",
"license": "AGPL-3",
"summary": "Adds start/end dates on invoice/move lines",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,14 @@ def setUpClass(cls):
cls.move_model = cls.env["account.move"]
cls.account_model = cls.env["account.account"]
cls.journal_model = cls.env["account.journal"]
cls.account_revenue = cls.account_model.search(
[
(
"user_type_id",
"=",
cls.env.ref("account.data_account_type_revenue").id,
)
],
limit=1,
cls.account_revenue = cls.env["account.chart.template"]._get_demo_account(
"income",
"income",
cls.env.company,
)
cls.sale_journal = cls.journal_model.search([("type", "=", "sale")], limit=1)
cls.maint_product = cls.env.ref(
"account_invoice_start_end_dates." "product_maintenance_contract_demo"
"account_invoice_start_end_dates.product_maintenance_contract_demo"
)

def _date(self, date):
Expand Down
2 changes: 1 addition & 1 deletion account_invoice_start_end_dates/views/account_move.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
/>
</xpath>
<xpath
expr="//field[@name='invoice_line_ids']/form//field[@name='analytic_tag_ids']"
expr="//field[@name='invoice_line_ids']/form//field[@name='quantity']"
position="before"
>
<field name="must_have_dates" invisible="1" />
Expand Down

0 comments on commit 2e53b7e

Please sign in to comment.