mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
There can be multiple reasons for not grouping payment lines: * The customer needs each payment line individually for matching references. * For avoiding the risk of returning a big amount. * For not overpassing amout limits. * ... So with this commit, you have the possibility of selecting at payment mode level if you want to group or not
38 lines
1.5 KiB
XML
38 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<!--
|
|
Add the payment mode type settings
|
|
-->
|
|
<record id="view_payment_mode_form_inherit" model="ir.ui.view">
|
|
<field name="name">payment.mode.form.inherit</field>
|
|
<field name="model">payment.mode</field>
|
|
<field name="inherit_id" ref="account_payment.view_payment_mode_form"/>
|
|
<field name="arch" type="xml">
|
|
<field name="company_id" position="after">
|
|
<field name="active"/>
|
|
<field name="type"/>
|
|
<field name="purchase_ok"/>
|
|
<field name="sale_ok"/>
|
|
</field>
|
|
<form position="inside">
|
|
<group name="payment_order_create_defaults" string="Select Move Lines to Pay - Default Values">
|
|
<field name="default_populate_results"/>
|
|
<field name="default_journal_ids" widget="many2many_tags"/>
|
|
<field name="default_invoice"/>
|
|
<field name="default_date_type"/>
|
|
</group>
|
|
<group name="group_grouping" string="Line grouping">
|
|
<field name="group_lines"/>
|
|
</group>
|
|
<group string="Note" col="4">
|
|
<field name="note" nolabel="1"/>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|