Files
public/docx_report/data/docx_template.xml

38 lines
2.1 KiB
XML
Raw 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>
<!-- УПД переведён на РСБУ-слой (rsbu.invoice): регистрация шаблона
живёт в rsbu_fns_reporting (зависит и от docx_report, и от
rsbu_vat). Сами .docx-файлы — в docx_report/static/src/docx/
(report_rsbu_upd_templates.docx и ..._updn...). -->
<!-- Заказ на продажу -->
<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>