| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <odoo> |
| 3 | |
| 4 | <record id="sale_pdf_form_field_list" model="ir.ui.view"> |
| 5 | <field name="name">sale.pdf.form.field.list</field> |
| 6 | <field name="model">sale.pdf.form.field</field> |
| 7 | <field name="arch" type="xml"> |
| 8 | <list editable="top" multi_edit="true" create="false"> |
| 9 | <field name="name"/> |
| 10 | <field name="path"/> |
| 11 | <field name="document_type"/> |
| 12 | <field name="product_document_ids" widget="many2many_tags" optional="hide"/> |
| 13 | <field name="quotation_document_ids" widget="many2many_tags" optional="hide"/> |
| 14 | </list> |
| 15 | </field> |
| 16 | </record> |
| 17 | |
| 18 | <record id="quotation_document_search" model="ir.ui.view"> |
| 19 | <field name="name">sale.pdf.form.field.search</field> |
| 20 | <field name="model">sale.pdf.form.field</field> |
| 21 | <field name="arch" type="xml"> |
| 22 | <search> |
| 23 | <field name="name"/> |
| 24 | <filter name="customizable" string="Customizable" domain="[('path', '=', False)]"/> |
| 25 | <filter |
| 26 | string="This document" |
| 27 | name="context_document" |
| 28 | domain="[ |
| 29 | ('document_type', '=', context.get('default_document_type')), |
| 30 | ('product_document_ids', '=', context.get('default_product_document_ids')), |
| 31 | ('quotation_document_ids', '=', context.get('default_quotation_document_ids')) |
| 32 | ]" |
| 33 | /> |
| 34 | </search> |
| 35 | </field> |
| 36 | </record> |
| 37 | |
| 38 | </odoo> |