34 lines
1.2 KiB
XML
34 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<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 records:
|
|
action = records.print_checks()
|
|
</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>
|
|
</odoo>
|