[REF]GOLEM Resource : view reorganization

This commit is contained in:
Fabien BOURGEOIS 2018-02-18 13:51:46 +01:00
parent e1f2a2a47a
commit 2c7fb63984

View File

@ -19,20 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<odoo> <odoo>
<data> <data>
<!-- Searches -->
<record model="ir.ui.view" id="golem_resource_view_search">
<field name="name">GOLEM Resource search</field>
<field name="model">golem.resource</field>
<field name="arch" type="xml">
<search>
<field name="name" />
<field name="type_id" />
<field name="supervisor_id" />
<field name="product_tmpl_id" />
</search>
</field>
</record>
<!-- Trees --> <!-- Trees -->
<record model="ir.ui.view" id="golem_resource_view_tree"> <record model="ir.ui.view" id="golem_resource_view_tree">
<field name="name">GOLEM Resource Tree</field> <field name="name">GOLEM Resource Tree</field>
@ -50,6 +36,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</field> </field>
</record> </record>
<record model="ir.ui.view" id="golem_resource_type_view_tree">
<field name="name">GOLEM Resource Type Tree</field>
<field name="model">golem.resource.type</field>
<field name="arch" type="xml">
<tree editable="bottom">
<field name="name" />
</tree>
</field>
</record>
<!-- Forms --> <!-- Forms -->
<record model="ir.ui.view" id="golem_resource_view_form"> <record model="ir.ui.view" id="golem_resource_view_form">
<field name="name">GOLEM Resource Form</field> <field name="name">GOLEM Resource Form</field>
@ -97,22 +93,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</field> </field>
</record> </record>
<!-- Actions --> <!-- Searches -->
<act_window id="golem_resource_action" name="Resources" <record model="ir.ui.view" id="golem_resource_view_search">
res_model="golem.resource" view_mode="tree,form" /> <field name="name">GOLEM Resource search</field>
<field name="model">golem.resource</field>
<!-- Trees -->
<record model="ir.ui.view" id="golem_resource_type_view_tree">
<field name="name">GOLEM Resource Type Tree</field>
<field name="model">golem.resource.type</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree editable="bottom"> <search>
<field name="name" /> <field name="name" />
</tree> <field name="type_id" />
<field name="supervisor_id" />
<field name="product_tmpl_id" />
</search>
</field> </field>
</record> </record>
<!-- Actions --> <!-- Actions -->
<act_window id="golem_resource_action" name="Resources"
res_model="golem.resource" view_mode="tree,form" />
<act_window id="golem_resource_type_action" name="Resource Types" <act_window id="golem_resource_type_action" name="Resource Types"
res_model="golem.resource.type" view_mode="tree" /> res_model="golem.resource.type" view_mode="tree" />