Files
tryton/account.xml
T
Cédric Krier cafff27206 Add sequence and unique constraint for mandate identification
- Define a sequence in the account configuration for the mandate
  identification.
- Add a unique constraint per company on the mandate identification.

issue3963
review5391002
2014-06-22 17:13:47 +02:00

23 lines
955 B
XML

<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.action.act_window.domain"
id="act_move_line_form_domain_receivable_mandate">
<field name="name">Receivable with Mandate</field>
<field name="sequence" eval="25"/>
<field name="domain">['AND', ['OR', ('debit', '&gt;', 0), ('credit', '&lt;', 0)], ('party.sepa_mandates', '!=', None)]</field>
<field name="act_window" ref="account_payment.act_move_line_form"/>
</record>
<record model="ir.ui.view" id="configuration_view_form">
<field name="model">account.configuration</field>
<field name="inherit" ref="account.configuration_view_form"/>
<field name="name">configuration_form</field>
</record>
</data>
</tryton>