flectra/addons/account_check_printing/data/account_check_printing_data.xml

27 lines
889 B
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record id="account_payment_method_check" model="account.payment.method">
<field name="name">Checks</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="binding_model_id" ref="account.model_account_payment" />
<field name="state">code</field>
<field name="code">
if records:
action = records.print_checks()
</field>
</record>
</data>
</odoo>