<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <record id="action_contract_generate_docx" model="ir.actions.server">
        <field name="name">Договор DOCX</field>
        <field name="model_id" ref="l10n_ru_contract.model_partner_contract_customer"/>
        <field name="binding_model_id" ref="l10n_ru_contract.model_partner_contract_customer"/>
        <field name="state">code</field>
        <field name="code">
            action = records.action_report_contract_with_format('docx')
        </field>
        <field name="binding_type">action</field>
    </record>

    <record id="action_contract_generate_md" model="ir.actions.server">
        <field name="name">Договор MD</field>
        <field name="model_id" ref="l10n_ru_contract.model_partner_contract_customer"/>
        <field name="binding_model_id" ref="l10n_ru_contract.model_partner_contract_customer"/>
        <field name="state">code</field>
        <field name="code">
            action = records.action_report_contract_with_format('md')
        </field>
        <field name="binding_type">action</field>
    </record>
</odoo>