Skip to content

Commit

Permalink
[FIX] project_budget: implement create multi.
Browse files Browse the repository at this point in the history
  • Loading branch information
blaskurain committed Oct 30, 2024
1 parent d204af0 commit 6baf1e4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions project_budget/models/project_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ def create_initial_project_budget(self, date=False):
)
budget.button_compute_lines()

@api.model
def create(self, values):
created = super(ProjectProject, self).create(values)
created.create_initial_project_budget()
@api.model_create_multi
def create(self, vals_list):
created = super().create(vals_list)
for p in created:
p.create_initial_project_budget()
return created

0 comments on commit 6baf1e4

Please sign in to comment.