You can create a view for project.task.work and user can enter their task works 
from thare.
Here is the simple code for creating view. you can set appropriate domain on 
task and menu.
&nbsp; &nbsp; <record id="task_work_tree" model="ir.ui.view">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field 
name="name">project.task.work.tree</field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field 
name="model">project.task.work</field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field name="type">tree</field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field name="arch" type="xml">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<tree string="Task Work" 
editable="top">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<field 
name="task_id" />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<field 
name="date" />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field 
name="user_id" />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field 
name="hours" widget="float_time" />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field 
name="name" />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </tree>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </field>
&nbsp; &nbsp; &nbsp; &nbsp; </record>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;<record id="task_work_form" model="ir.ui.view">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field 
name="name">project.task.work.form</field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field 
name="model">project.task.work</field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field name="type">form</field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field name="arch" type="xml">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<form string="Task Work">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<field 
name="task_id" select="1"/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<field 
name="date" select="1"/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field 
name="user_id" select="1"/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field 
name="hours" widget="float_time" />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field 
name="name" select="1"/>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </form>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </field>
&nbsp; &nbsp; &nbsp; &nbsp; </record>

&nbsp; &nbsp; &nbsp; &nbsp; <record id="open_task_work_tree" 
model="ir.actions.act_window">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field name="name">Task Work</field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field 
name="res_model">project.task.work</field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field name="view_type">form</field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field 
name="view_mode">tree/form</field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field name="view_id" 
ref="task_work_tree"/>
&nbsp; &nbsp; &nbsp; &nbsp; </record>
&nbsp; &nbsp; &nbsp; &nbsp; <menuitem action="open_task_work_tree" 
id="menu_task_work" parent="menu_main"/>


------------------------
OpenERP=Easier, Adaptable, Affordable, Modular




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=34516#34516

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to