Skip to content

Commit

Permalink
[MIG] base_multi_store: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
docker-odoo authored and matiasperalta1 committed Nov 21, 2024
1 parent 2b9fc7d commit 55f6860
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions base_multi_store/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Multi Stores Management',
'version': "17.0.1.0.0",
'version': "18.0.1.0.0",
'category': 'Accounting',
'sequence': 14,
'summary': '',
Expand All @@ -40,7 +40,7 @@
'demo': [
'demo/res_store_demo.xml',
],
'installable': False,
'installable': True,
'auto_install': False,
'application': True,
}
2 changes: 1 addition & 1 deletion base_multi_store/models/res_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ResStore(models.Model):
@api.constrains('parent_id')
def _check_parent_id(self):
for rec in self:
if not rec._check_recursion():
if not rec._has_cycle():
raise ValidationError(
_('Error! You can not create recursive stores.'))

Expand Down
8 changes: 4 additions & 4 deletions base_multi_store/views/res_store_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<odoo>
<!-- Tree -->
<record id="view_res_store_tree" model="ir.ui.view">
<field name="name">res.store.tree</field>
<field name="name">res.store.list</field>
<field name="model">res.store</field>
<field name="arch" type="xml">
<tree string="Stores">
<list string="Stores">
<field name="name"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="parent_id"/>
</tree>
</list>
</field>
</record>

Expand Down Expand Up @@ -48,7 +48,7 @@
<field name="name">Stores</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.store</field>
<field name="view_mode">tree,form</field>
<field name="view_mode">list,form</field>
<field name="domain"></field>
</record>

Expand Down

0 comments on commit 55f6860

Please sign in to comment.