project_service_material.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- form view -->
  5. <record model="ir.ui.view" id="project_service_material_form">
  6. <field name="name">project.service.material.form</field>
  7. <field name="model">project.service.material</field>
  8. <field name="arch" type="xml">
  9. <form string="Materiales">
  10. <group>
  11. <group>
  12. <field name="product_id" />
  13. </group>
  14. <group>
  15. <field name="amount"/>
  16. <field name="price"/>
  17. </group>
  18. </group>
  19. </form>
  20. </field>
  21. </record>
  22. <!-- Tree view -->
  23. <record model="ir.ui.view" id="project_service_material_tree">
  24. <field name="name">project.service.material.tree</field>
  25. <field name="model">project.service.material</field>
  26. <field name="arch" type="xml">
  27. <tree string="Materiales" editable="bottom">
  28. <field name="product_id" required="1"/>
  29. <field name="amount" required="1" sum="amount"/>
  30. <field name="price" required="1" sum="total"/>
  31. </tree>
  32. </field>
  33. </record>
  34. </data>
  35. </openerp>