Skip to content

Commit

Permalink
[IMP] account_payment_group_multi_store_account: store not editable i…
Browse files Browse the repository at this point in the history
…f from invoice
  • Loading branch information
jjscarafia committed Oct 26, 2023
1 parent 56335d6 commit 946aa07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion account_payment_group_multi_store/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Multi Store on Payment Groups',
'version': '16.0.1.0.0',
'version': '16.0.1.1.0',
'category': 'Accounting',
'sequence': 14,
'summary': '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<field name="arch" type="xml">
<field name="company_id" position="after">
<!-- lo hacemos requerido por vista porque es computado (se computa luego de crear) y ademas por si al instalar algun store no se puede definir, ademas lo hacemos solo requerido en estado borrador ya que si queda algun pago validado sin este campo, dejamos que se reabra y de ultima se seleccione -->
<field name="store_id" groups="base_multi_store.group_multi_store" attrs="{'required': [('state', '=', 'draft')], 'readonly': ['|', ('state', '!=', 'draft'), ('payment_ids', '!=', [])]}" options="{'no_create': True, 'no_open': True}"/>
<field name="store_id" groups="base_multi_store.group_multi_store" attrs="{'required': [('state', '=', 'draft')], 'readonly': ['|', ('state', '!=', 'draft'), ('payment_ids', '!=', [])]}" options="{'no_create': True, 'no_open': True}" invisible="context.get('pop_up')"/>
</field>
</field>
</record>
Expand Down

0 comments on commit 946aa07

Please sign in to comment.