Skip to content

Commit

Permalink
[MIG] base_substate: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hildickethan committed Jan 3, 2023
1 parent 88a1ae9 commit 1b6b96a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion base_substate/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Base Sub State",
"version": "15.0.1.0.0",
"version": "16.0.1.0.0",
"category": "Tools",
"author": "Akretion, " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/server-ux",
Expand Down
6 changes: 5 additions & 1 deletion base_substate/i18n/base_substate.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-14 11:42+0000\n"
"PO-Revision-Date: 2022-12-14 11:42+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -212,6 +214,7 @@ msgid ""
msgstr ""

#. module: base_substate
#. odoo-python
#: code:addons/base_substate/models/base_substate_mixin.py:0
#, python-format
msgid ""
Expand All @@ -220,6 +223,7 @@ msgid ""
msgstr ""

#. module: base_substate
#. odoo-python
#: code:addons/base_substate/models/base_substate_mixin.py:0
#, python-format
msgid "This substate is not define for this object but for %s"
Expand Down
9 changes: 5 additions & 4 deletions base_substate/models/base_substate_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ def write(self, values):
res = super().write(values)
return res

@api.model
def create(self, values):
values = self._update_before_write_create(values)
res = super().create(values)
@api.model_create_multi
def create(self, vals_list):
for vals in vals_list:
vals = self._update_before_write_create(vals)
res = super().create(vals_list)
return res

0 comments on commit 1b6b96a

Please sign in to comment.