Skip to content

Commit

Permalink
[IMP] *: simplify and improve views
Browse files Browse the repository at this point in the history
closes #48

Signed-off-by: Nicolas Mac Rouillon <nmr@adhoc.com.ar>
  • Loading branch information
jjscarafia committed Jul 19, 2023
1 parent 3191ee5 commit 11abed5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
10 changes: 4 additions & 6 deletions account_multi_store/views/res_store_views.xml
Expand Up @@ -16,14 +16,12 @@
<field name="journals_count" widget="statinfo"/>
</button>
</div>
<field name="parent_id" position="after">
<group>
<field name="only_allow_reonciliaton_of_this_store"/>
</group>
</field>
<group name="col2">
<field name="only_allow_reonciliaton_of_this_store"/>
</group>
<notebook>
<page string="Journals" name="journals">
<field name="journal_ids" readonly="1" widget="many2many_tags"/>
<field name="journal_ids" widget="many2many" domain="[('store_id', '=', False)]"/>
</page>
</notebook>
</field>
Expand Down
2 changes: 1 addition & 1 deletion account_payment_group_multi_store/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Multi Store on Payment Groups',
'version': '13.0.1.0.0',
'version': '16.0.1.0.0',
'category': 'Accounting',
'sequence': 14,
'summary': '',
Expand Down
Expand Up @@ -6,7 +6,6 @@ class AccountPaymentGroup(models.Model):

store_id = fields.Many2one(
'res.store',
# related='journal_id.store_id',
compute='_compute_store_id',
readonly=False,
store=True,
Expand Down
14 changes: 9 additions & 5 deletions base_multi_store/views/res_store_view.xml
Expand Up @@ -19,6 +19,7 @@
<field name="model">res.store</field>
<field name="arch" type="xml">
<form>
<field name="company_id" invisible="1"/>
<sheet>
<div class="oe_button_box" name="button_box"> </div>
<field name="id" invisible="1"/>
Expand All @@ -29,12 +30,15 @@
</h1>
</div>
<group>
<field name="company_id" invisible="1"/>
<field name="company_id" placeholder="Company" groups="base.group_multi_company"/>
<field name="parent_id" placeholder="Parent" domain="[('id', '!=', id),'|', ('company_id', '=', False), ('company_id', '=', company_id)]" context="{'default_company_id': company_id}"/>
<notebook>
</notebook>
<group name="col1">
<field name="company_id" groups="base.group_multi_company"/>
<field name="parent_id" domain="[('id', '!=', id),'|', ('company_id', '=', False), ('company_id', '=', company_id)]" context="{'default_company_id': company_id}"/>
</group>
<group name="col2">
</group>
</group>
<notebook>
</notebook>
</sheet>
</form>
</field>
Expand Down
2 changes: 1 addition & 1 deletion stock_multi_store/views/res_store_view.xml
Expand Up @@ -20,7 +20,7 @@

<notebook>
<page string="Warehouses" name="warehouses">
<field name="warehouse_ids" readonly="1" widget="many2many_tags"/>
<field name="warehouse_ids" widget="many2many" domain="[('store_id', '=', False)]"/>
</page>
</notebook>

Expand Down

0 comments on commit 11abed5

Please sign in to comment.