Public release from ruodoo-project: 19.0 - 2026-07-26 21:17:35 UTC
This commit is contained in:
58
docx_report/data/docx_template.xml
Normal file
58
docx_report/data/docx_template.xml
Normal file
@ -0,0 +1,58 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user