sale_order.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="dikasa_sale_form">
  5. <field name="name">dikasa_sale_form</field>
  6. <field name="model">sale.order</field>
  7. <field name="inherit_id" ref="sale.view_order_form"/>
  8. <field name="arch" type="xml">
  9. <field name="partner_id" position="replace">
  10. <field name="partner_id" domain="[('customer','=',True)]" options='{"always_reload": True}'/>
  11. </field>
  12. <field name="partner_id" position="after">
  13. <field name="ruc"/>
  14. <field name="street"/>
  15. <field name="state_id"/>
  16. <field name="country_id"/>
  17. <field name="email"/>
  18. <field name="phone"/>
  19. <field name="mobile"/>
  20. <field name="credit_limit"/>
  21. </field>
  22. <field name="user_id" position="attributes">
  23. <attribute name="string">Vendedor</attribute>
  24. <attribute name="readonly">True</attribute>
  25. </field>
  26. <field name="user_id" position="after">
  27. <field name="create_uid" readonly="1"/>
  28. </field>
  29. <field name="note" position="before">
  30. <group>
  31. <field name="total_weight" class='oe_inline'/>%%
  32. </group>
  33. </field>
  34. </field>
  35. </record>
  36. <record model="ir.ui.view" id="dikasa_sale_form2">
  37. <field name="name">dikasa_sale_form2</field>
  38. <field name="model">sale.order</field>
  39. <field name="inherit_id" ref="sale_stock.view_order_form_inherit"/>
  40. <field name="arch" type="xml">
  41. <field name="incoterm" position="attributes">
  42. <attribute name="invisible">True</attribute>
  43. </field>
  44. </field>
  45. </record>
  46. </data>
  47. </openerp>