Avoid empty group in payment mode

Code cleanup in views
This commit is contained in:
Alexis de Lattre
2016-05-10 23:28:38 +02:00
parent 4e6261a9b1
commit 79e56499cd
4 changed files with 7 additions and 9 deletions

View File

@@ -14,12 +14,10 @@
<field name="model">account.payment.mode</field>
<field name="inherit_id" ref="account_payment_order.account_payment_mode_form"/>
<field name="arch" type="xml">
<group name="payment_order_options" position="after">
<group name="pain_options" string="Options for PAIN">
<!-- To be set visible in the localisation modules that need it -->
<field name="initiating_party_identifier" invisible="1"/>
<field name="initiating_party_issuer" invisible="1"/>
</group>
<group name="main" position="inside">
<!-- To be set visible in the localisation modules that need it -->
<field name="initiating_party_identifier" invisible="1"/>
<field name="initiating_party_issuer" invisible="1"/>
</group>
</field>
</record>

View File

@@ -10,7 +10,7 @@
<field name="model">account.payment.mode</field>
<field name="inherit_id" ref="account_banking_pain_base.account_payment_mode_form"/>
<field name="arch" type="xml">
<group name="pain_options" position="inside">
<group name="main" position="inside">
<field name="sepa_creditor_identifier" invisible="1"/>
<!-- This field should be set visible by localization modules
for countries that may have several sepa_creditor_identifier for

View File

@@ -21,7 +21,7 @@
attrs="{'invisible': [('bank_account_link', '!=', 'variable')], 'required': [('bank_account_link', '=', 'variable')]}"
widget="many2many_tags"/>
</group>
<group string="Note" col="4">
<group string="Note" name="note">
<field name="note" nolabel="1"/>
</group>
</form>

View File

@@ -35,7 +35,7 @@ class AccountPaymentMode(models.Model):
('move', 'Move'),
], default='due', string="Type of Date Filter")
group_lines = fields.Boolean(
string="Group lines in payment orders", default=True,
string="Group Lines in Payment Orders", default=True,
help="If this mark is checked, the payment order lines will be "
"grouped when validating the payment order before exporting the "
"bank file. The grouping will be done only if the following "