Files
public/docx_report/data/docx_template.xml

59 lines
3.4 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- Договор с покупателем -->
<record id="docx_template_contract" model="docx.template">
<field name="name">Контракт с клиентом</field>
<field name="report_type">docx-docx</field>
<field name="model">partner.contract.customer</field>
<field name="docx_output_type">docx</field>
<field name="docx_model_id" search="[('model','=','partner.contract.customer')]" model="ir.model"/>
<field name="global_template" eval="True"/>
<field name="filename_pattern">object.name or 'contract'</field>
<field name="report_docx_template" type="base64" file="docx_report/static/src/docx/contract.docx"/>
<field name="report_docx_template_filename">contract.docx</field>
</record>
<!-- УПД (новый шаблон) -->
<record id="docx_template_invoice_upd" model="docx.template">
<field name="name">Универсальный передаточный документ(УПД) DOCX</field>
<field name="report_type">docx-docx</field>
<field name="model">account.move</field>
<field name="docx_output_type">docx</field>
<field name="docx_model_id" search="[('model','=','account.move')]" model="ir.model"/>
<field name="global_template" eval="True"/>
<field name="filename_pattern">object.name or 'upd'</field>
<field name="report_docx_template" type="base64" file="docx_report/static/src/docx/report_account_invoice_upd_new_templates.docx"/>
<field name="report_docx_template_filename">report_account_invoice_upd_new_templates.docx</field>
</record>
<!-- УПД-Н (новый шаблон) -->
<record id="docx_template_invoice_updn" model="docx.template">
<field name="name">УПД без печатей DOCX</field>
<field name="report_type">docx-docx</field>
<field name="model">account.move</field>
<field name="docx_output_type">docx</field>
<field name="docx_model_id" search="[('model','=','account.move')]" model="ir.model"/>
<field name="global_template" eval="True"/>
<field name="filename_pattern">object.name or 'updn'</field>
<field name="report_docx_template" type="base64" file="docx_report/static/src/docx/report_account_invoice_updn_templates.docx"/>
<field name="report_docx_template_filename">report_account_invoice_updn_templates.docx</field>
</record>
<!-- Заказ на продажу -->
<record id="docx_template_saleorder" model="docx.template">
<field name="name">Счет по форме 1С DOCX</field>
<field name="report_type">docx-docx</field>
<field name="model">sale.order</field>
<field name="docx_output_type">docx</field>
<field name="docx_model_id" search="[('model','=','sale.order')]" model="ir.model"/>
<field name="global_template" eval="True"/>
<field name="filename_pattern">object.name or 'sale_order'</field>
<field name="report_docx_template" type="base64" file="docx_report/static/src/docx/report_saleorder_new_template.docx"/>
<field name="report_docx_template_filename">report_saleorder_new_template.docx</field>
</record>
</data>
</odoo>