Files
odoo_source/addons/account_check_printing/data/check_printing.xml
T
Arthur Maniet 5ff410d01a [REF] account check printing: base module is a hidden dependency
The account_check_writing module offers the structure for other modules
to add check printing facilities (like l10n_us_check_printing), in and of
itself it brings no functionality.
2015-08-10 13:48:55 +02:00

34 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<record id="account_payment_method_check" model="account.payment.method">
<field name="name">Check</field>
<field name="code">check_printing</field>
<field name="payment_type">outbound</field>
</record>
<function model="account.journal" name="_enable_check_printing_on_bank_journals"/>
<record model="ir.actions.server" id="action_account_print_checks">
<field name="name">Print Checks</field>
<field name="model_id" ref="account.model_account_payment"/>
<field name="code">
if context.get('active_model') == 'account.payment' and context.get('active_ids'):
action = self.pool['account.payment'].print_checks(cr, uid, context['active_ids'], context=context)
</field>
</record>
<record model="ir.values" id="account_print_checks">
<field name="model_id" ref="account.model_account_payment" />
<field name="name">Print Checks</field>
<field name="key2">client_action_multi</field>
<field name="value" eval="'ir.actions.server,' +str(ref('action_account_print_checks'))" />
<field name="key">action</field>
<field name="model">account.payment</field>
</record>
</data>
</openerp>