diff --git a/account_analytic_wip/models/account_analytic_line.py b/account_analytic_wip/models/account_analytic_line.py index d7ee33e095..f97618b2cd 100644 --- a/account_analytic_wip/models/account_analytic_line.py +++ b/account_analytic_wip/models/account_analytic_line.py @@ -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 diff --git a/account_analytic_wip/models/account_analytic_tracking.py b/account_analytic_wip/models/account_analytic_tracking.py index 85db02af40..a17155640f 100644 --- a/account_analytic_wip/models/account_analytic_tracking.py +++ b/account_analytic_wip/models/account_analytic_tracking.py @@ -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 diff --git a/account_analytic_wip/views/account_analytic_tracking.xml b/account_analytic_wip/views/account_analytic_tracking.xml index 828b5d9a14..50eebb2a26 100644 --- a/account_analytic_wip/views/account_analytic_tracking.xml +++ b/account_analytic_wip/views/account_analytic_tracking.xml @@ -23,14 +23,14 @@ - + - - - - - + + + + +