[IMP] account_move_attachement_zipped_download, account_quotation_sale_order_invoice_title, account_usability_misc: pre-commit execution

This commit is contained in:
Stéphan Sainléger
2026-03-17 23:04:52 +01:00
parent bb6891d825
commit 07669b8bf9
33 changed files with 1314 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_invoice_document" inherit_id="account.report_invoice_document">
<xpath expr="//span[@t-field='o.name']" position="after">
<div t-field="o.move_title" />
</xpath>
</template>
</odoo>

View File

@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_move_title_tree" model="ir.ui.view">
<field name="name">move_title.move.tree</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_tree" />
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="after">
<field name="move_title" />
</xpath>
</field>
</record>
<record id="view_invoice_title_tree" model="ir.ui.view">
<field name="name">invoice_title.move.tree</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_invoice_tree" />
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="after">
<field name="move_title" />
</xpath>
</field>
</record>
<record id="view_move_title_form" model="ir.ui.view">
<field name="name">move_title.move.form</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form" />
<field name="arch" type="xml">
<xpath expr="//div[hasclass('oe_title')]" position="after">
<h1 class="mt0">
<field name="move_title" placeholder="Title..." />
</h1>
</xpath>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_saleorder_document" inherit_id="sale.report_saleorder_document">
<xpath expr="//span[@t-field='doc.name']" position="after">
<div t-field="doc.so_title"></div>
</xpath>
</template>
</odoo>

View File

@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_order_title_tree" model="ir.ui.view">
<field name="name">so_title.sale.order.tree</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_tree" />
<field name="arch" type="xml">
<field name="name" position="after">
<field name="so_title" />
</field>
</field>
</record>
<record id="view_quotation_title_tree" model="ir.ui.view">
<field name="name">so_title.quotation.tree</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_quotation_tree" />
<field name="arch" type="xml">
<field name="name" position="after">
<field name="so_title" />
</field>
</field>
</record>
<record id="view_order__title_form" model="ir.ui.view">
<field name="name">so_title.sale_order_form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="arch" type="xml">
<field name="name" position="attributes">
<attribute name="class">oe_inline</attribute>
</field>
<xpath expr="//field[@name='name']" position="after">
<field name="so_title" class="oe_inline" placeholder="Title..." />
</xpath>
</field>
</record>
</odoo>