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.
 
 
 
 
 

22 lines
897 B

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--
This XML file inherits the sale order form view to add a new field,
`attachment_ids`, which uses the `many2many_attachment_preview` widget.
The new field is placed right after the `payment_term_id` field.
This customization allows users to preview attachments directly in the
sale order form.
-->
<record id="view_order_form" model="ir.ui.view">
<field name="name">
sale.order.view.form.inherit.many2many.attachment.preview
</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="model">sale.order</field>
<field name="arch" type="xml">
<field name="payment_term_id" position="after">
<field name="attachment_ids" widget="many2many_attachment_preview"/>
</field>
</field>
</record>
</odoo>