Skip to content

Commit

Permalink
temp rebasing PR 406 (271c629)
Browse files Browse the repository at this point in the history
  • Loading branch information
roboadhoc committed Oct 27, 2023
2 parents b424bd6 + 271c629 commit 85f5d28
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion account_payment_group/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Account Payment with Multiple methods",
"version": "16.0.1.5.0",
"version": "16.0.1.6.0",
"category": "Accounting",
"website": "www.adhoc.com.ar",
"author": "ADHOC SA, AITIC S.A.S",
Expand Down
1 change: 1 addition & 0 deletions account_payment_group/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def action_register_payment_group(self):
# you can't crate payment lines (for ej: subscription)
'create': True,
'default_company_id': self.company_id.id,
'pop_up': True,
},
}

Expand Down
8 changes: 4 additions & 4 deletions account_payment_group/views/account_payment_group_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@

<group>
<group name="group1">
<field name="company_id" options="{'no_create': True, 'no_open': True}" />
<field name="company_id" options="{'no_create': True, 'no_open': True}" invisible="context.get('pop_up')"/>
<field name="currency_id" invisible="1"/>
<field name="partner_id" context="{'default_is_company': True}" string="Customer"
<field name="partner_id" context="{'default_is_company': True}" string="Customer" invisible="context.get('pop_up')"
attrs="{'readonly':[('state', '!=', 'draft')],
'invisible':[('partner_type','!=','customer')],
'required': [('partner_type','=','customer')]}"/>
<field name="partner_id" context="{'default_is_company': True}" string="Vendor"
'required': [('partner_type','=','customer')]}" />
<field name="partner_id" context="{'default_is_company': True}" string="Vendor" invisible="context.get('pop_up')"
attrs="{'readonly':[('state', '!=', 'draft')],
'invisible':[('partner_type','!=','supplier')],
'required': [('partner_type','=','supplier')]}"/>
Expand Down

0 comments on commit 85f5d28

Please sign in to comment.