You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

35 lines
1.7 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--
This view inheritance adds a new page to the sale order form in Odoo.
The new page is labeled "Sale order History" and it displays a tree view of order details.
This page contains the fields: name, product, quantity, company (invisible), unit price, taxes (many2many_tags widget),
and subtotal price. Additionally, a button is added at the bottom of the tree to perform the 'Add' action.
-->
<record id="view_order_form"
model="ir.ui.view">
<field name="name">sale.order.form.view.inherit.customer.so.history</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='order_lines']" position="after">
<page string="Sale order History">
<field name="order_details_ids">
<tree editable="bottom">
<field name="name"/>
<field name="product_id"/>
<field name="product_uom_qty"/>
<field name="company_id" invisible="1"/>
<field name="price_unit"/>
<field name="tax_id" widget="man2many_tags"/>
<field name="price_subtotal"/>
<button id="button_confirm" name="action_add"
string="Add" class="btn-primary"
type="object"/>
</tree>
</field>
</page>
</xpath>
</field>
</record>
</odoo>