[NEW] invoice_sale_order_note

This commit is contained in:
clementthomas
2024-09-26 13:30:01 +02:00
parent e5c26a7ebd
commit a66e6a2427
9 changed files with 154 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="//table[@name='invoice_line_table']" position="before">
<div t-field="o.report_note"></div>
</xpath>
</template>
</odoo>

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="view_move_form_invoice_sale_order_note" model="ir.ui.view">
<field name="name">account.move.form.invoice.sale.order.note</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<notebook position="inside">
<page name="note" string="Notes">
<field name="report_note" nolabel="1" colspan="2" attrs="{'readonly': [('state', '!=', 'draft')]}" />
</page>
</notebook>
</field>
</record>
</data>
</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="//tbody" position="before">
<div t-field="o.report_note"></div>
</xpath>
</template>
</odoo>

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_order_form_invoice_sale_order_note" model="ir.ui.view">
<field name="name">view.order.form.invoice0sale.order.note</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="arch" type="xml">
<notebook position="inside">
<page name="note" string="Notes">
<field name="report_note" nolabel="1" colspan="2" />
</page>
</notebook>
</field>
</record>
</odoo>