sale_order.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. </field>
  25. <field name="user_id" position="after">
  26. <field name="create_uid" readonly="1"/>
  27. </field>
  28. <field name="note" position="before">
  29. <group>
  30. <field name="total_weight" class='oe_inline'/><label for="my_field">%%</label>
  31. </group>
  32. </field>
  33. </field>
  34. </record>
  35. <record model="ir.ui.view" id="dikasa_sale_form2">
  36. <field name="name">dikasa_sale_form2</field>
  37. <field name="model">sale.order</field>
  38. <field name="inherit_id" ref="sale_stock.view_order_form_inherit"/>
  39. <field name="arch" type="xml">
  40. <field name="incoterm" position="attributes">
  41. <attribute name="invisible">True</attribute>
  42. </field>
  43. </field>
  44. </record>
  45. </data>
  46. </openerp>