123456789101112131415161718192021222324252627282930313233343536373839 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
-
- <!-- form view -->
-
- <record model="ir.ui.view" id="project_service_material_form">
- <field name="name">project.service.material.form</field>
- <field name="model">project.service.material</field>
- <field name="arch" type="xml">
- <form string="Materiales">
- <group>
- <group>
- <field name="product_id" />
- </group>
- <group>
- <field name="amount"/>
- <field name="price"/>
- </group>
- </group>
- </form>
- </field>
- </record>
-
- <!-- Tree view -->
-
- <record model="ir.ui.view" id="project_service_material_tree">
- <field name="name">project.service.material.tree</field>
- <field name="model">project.service.material</field>
- <field name="arch" type="xml">
- <tree string="Materiales" editable="bottom">
- <field name="product_id" required="1"/>
- <field name="amount" required="1" sum="amount"/>
- <field name="price" required="1" sum="total"/>
- </tree>
- </field>
- </record>
- </data>
- </openerp>
|