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.2 KiB

  1. <?xml version="1.0"?>
  2. <!--
  3. © 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. -->
  6. <odoo>
  7. <record id="view_order_form" model="ir.ui.view">
  8. <field name="name">agreement.sale.order.form</field>
  9. <field name="model">sale.order</field>
  10. <field name="inherit_id" ref="sale_commercial_partner.view_order_form"/>
  11. <field name="arch" type="xml">
  12. <field name="client_order_ref" position="after">
  13. <field name="agreement_id"
  14. domain="[('partner_id', 'child_of', commercial_partner_id), ('agreement_type', '=', 'sale')]"
  15. context="{'default_partner_id': commercial_partner_id, 'default_agreement_type': 'sale'}"/>
  16. </field>
  17. </field>
  18. </record>
  19. <record id="view_sales_order_filter" model="ir.ui.view">
  20. <field name="name">agreement.sale.order.search</field>
  21. <field name="model">sale.order</field>
  22. <field name="inherit_id" ref="sale.view_sales_order_filter"/>
  23. <field name="arch" type="xml">
  24. <group expand="0" position="inside">
  25. <filter string="Agreement" name="agreement_groupby" context="{'group_by': 'agreement_id'}"/>
  26. </group>
  27. </field>
  28. </record>
  29. </odoo>