Skip to content

Commit

Permalink
[MIG] account_analytic_wip: migrate to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dreispt committed Aug 27, 2023
1 parent 767861f commit 0393ac6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions account_analytic_wip/models/account_analytic_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def populate_tracking_items(self):
for item in self.filtered(lambda x: not x.analytic_tracking_item_id):
item._get_set_tracking_item()

@api.model
def create(self, vals):
new = super().create(vals)
@api.model_create_multi
def create(self, vals_list):
new = super().create(vals_list)
new.populate_tracking_items()
return new
6 changes: 3 additions & 3 deletions account_analytic_wip/models/account_analytic_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@ def _populate_abcost_tracking_item(self):
}
tracking.copy(vals)

@api.model
def create(self, vals):
new = super().create(vals)
@api.model_create_multi
def create(self, vals_list):
new = super().create(vals_list)
new._populate_abcost_tracking_item()
return new

Expand Down
12 changes: 6 additions & 6 deletions account_analytic_wip/views/account_analytic_tracking.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
<group>
<field name="date" />
<field name="parent_id" />
<field name="planned_amount" string="Standard"/>
<field name="planned_amount" string="Standard" />
</group>
<group string="Actuals" name="actuals">
<field name="remaining_actual_amount" string="Remaining"/>
<field name="actual_amount" string="Actuals"/>
<field name="wip_actual_amount" string="WIP"/>
<field name="difference_actual_amount" string="Difference"/>
<field name="variance_actual_amount" string="Variance"/>
<field name="remaining_actual_amount" string="Remaining" />
<field name="actual_amount" string="Actuals" />
<field name="wip_actual_amount" string="WIP" />
<field name="difference_actual_amount" string="Difference" />
<field name="variance_actual_amount" string="Variance" />
</group>
<group string="Accounted" name="accounted">
<field name="pending_amount" />
Expand Down

0 comments on commit 0393ac6

Please sign in to comment.