[IMP]hr_timesheet_invoice:- configure your services open in List View

bzr revid: aag@tinyerp.co.in-20110509121245-nnvkgu83kaa5qh79
This commit is contained in:
aag (OpenERP) 2011-05-09 17:42:45 +05:30
parent eb983943d5
commit 76057abeb2
1 changed files with 17 additions and 4 deletions

View File

@ -46,6 +46,21 @@
<!-- Configure Your Services Config Wiz -->
<record id="product_timesheet_invoice_tree_view" model="ir.ui.view">
<field name="name">product.product.tree</field>
<field name="model">product.product</field>
<field name="type">tree</field>
<field eval="7" name="priority"/>
<field name="arch" type="xml">
<tree colors="red:virtual_available&lt;0;blue:virtual_available&gt;=0 and state in ('draft', 'end', 'obsolete');black:virtual_available&gt;=0 and state not in ('draft', 'end', 'obsolete')" string="Products">
<field name="name"/>
<field name="standard_price"/>
<field name="lst_price"/>
<field name="uom_id" string="UoM"/>
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="product_services_form_view_installer">
<field name="name">Configure Your Services</field>
<field name="type">ir.actions.act_window</field>
@ -53,8 +68,8 @@
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('type','=','service')]</field>
<field name="context" eval="'{\'default_type\':\'service\'}'"/>
<field name="view_id" ref="product.product_normal_form_view"/>
<field name="context" eval="'{\'default_type\':\'service\', \'default_sale_ok\':True, \'default_hr_expense_ok\':False,}'"/>
<field name="view_id" ref="product_timesheet_invoice_tree_view"/>
</record>
<record id="product_services_form_view_todo" model="ir.actions.todo">
@ -63,8 +78,6 @@
<field name="type">normal</field>
<field name="state">skip</field>
</record>
</data>
</openerp>