Skip to content

Commit

Permalink
Fix create method and clean up commented XML code
Browse files Browse the repository at this point in the history
Updated the `create` method to pass `vals_list` properly, ensuring correct functionality. Additionally, removed inconsistent XML comments to improve readability and maintainability of the view file.
  • Loading branch information
dhongu committed Jan 26, 2025
1 parent 5639993 commit bd0c2a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deltatech_business_process/models/business_development.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def create(self, vals_list):
if not vals.get("code", False):
vals["code"] = self.env["ir.sequence"].next_by_code(self._name)

return super().create()
return super().create(vals_list)

def write(self, vals):
result = super().write(vals)
Expand Down
2 changes: 1 addition & 1 deletion deltatech_business_process/views/business_process_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
<field name="date_end_bbp" invisible="1" />
<!--
<field name="date_start_bbp" readonly="state not in ('draft','design')" />
<field name="date_end_bbp" readonly="state not in ('draft','design')" />
<field name="date_end_bbp" readonly="state not in ('draft','design')" />-->
<field
name="completion_bbp"
widget="progressbar"
Expand Down

0 comments on commit bd0c2a5

Please sign in to comment.