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.

58 lines
2.9 KiB

  1. <odoo>
  2. <data>
  3. <record model="ir.ui.view" id="beesdoo_purchase_order_form_view">
  4. <field name="name">beesdoo.purchase.order.form.view</field>
  5. <field name="model">purchase.order</field>
  6. <field name="inherit_id" ref="purchase.purchase_order_form"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//div[hasclass('oe_button_box')]" position="inside">
  9. <button name="action_toggle_adapt_purchase_price" type="object"
  10. string="Toggle Purchase Price"
  11. icon="fa-check-square"
  12. class="oe_stat_button"
  13. help="Toggle Purchase Price checkboxes to adapt the purchase price on the product page when confirming Purchase Order"/>
  14. <button name="action_toggle_adapt_selling_price" type="object"
  15. string="Toggle Selling Price"
  16. icon="fa-check-square"
  17. class="oe_stat_button"
  18. help="Toggle Selling Price checkboxes to adapt the selling price on the product page when confirming Purchase Order"/>
  19. </xpath>
  20. <field name="date_order" position="after">
  21. <field name="supervisor_id"/>
  22. </field>
  23. <field name="product_id" position="attributes">
  24. <attribute name="domain">[
  25. ('main_seller_id','=', parent.partner_id),
  26. ('purchase_ok', '=', True) ]
  27. </attribute>
  28. </field>
  29. <field name="price_subtotal" position="after">
  30. <field name="adapt_purchase_price" string="Is Purchase Price"/>
  31. <field name="adapt_selling_price" string="Is Selling Price"/>
  32. </field>
  33. </field>
  34. </record>
  35. <record model="ir.ui.view" id="beesdoo_purchase_order_tree_view">
  36. <field name="name">beesdoo.purchase.order.tree.view</field>
  37. <field name="model">purchase.order</field>
  38. <field name="inherit_id" ref="purchase.purchase_order_tree"/>
  39. <field name="arch" type="xml">
  40. <field name="origin" position="after">
  41. <field name="supervisor_id"/>
  42. </field>
  43. </field>
  44. </record>
  45. <record model="ir.ui.view" id="beesdoo_purchase_order_search_view">
  46. <field name="name">beesdoo.purchase.order.search.view</field>
  47. <field name="model">purchase.order</field>
  48. <field name="inherit_id" ref="purchase.view_purchase_order_filter"/>
  49. <field name="arch" type="xml">
  50. <field name="create_uid" position="after">
  51. <field name="supervisor_id"/>
  52. </field>
  53. </field>
  54. </record>
  55. </data>
  56. </odoo>