OpenERP版本6,我的时间表表单在继承后崩溃
在OpenERP版本6中,在我的自定义模块中,我通过继承以下自定义视图更改了时间表表单视图:OpenERP版本6,我的时间表表单在继承后崩溃,openerp,Openerp,在OpenERP版本6中,在我的自定义模块中,我通过继承以下自定义视图更改了时间表表单视图: <record id="oit_hr_timesheet_sheet_form" model="ir.ui.view"> <field name="name">oit.hr.timesheet.sheet.form</field> <field name="model">hr_timesheet_sheet.sheet<
<record id="oit_hr_timesheet_sheet_form" model="ir.ui.view">
<field name="name">oit.hr.timesheet.sheet.form</field>
<field name="model">hr_timesheet_sheet.sheet</field>
<field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_form" />
<field name="type">form</field>
<field name="arch" type="xml">
<data>
<button name="sign_in" position="replace"/>
<button name="sign_out" position="replace"/>
<field name="state_attendance" position="after">
<field name="day_attendance"/>
</field>
<field name="total_attendance_day" position="replace"/>
<field name="total_difference_day" position="replace"/>
<field name="total_timesheet_day" position="replace"/>
<field name="timesheet_ids" position="after">
<field name="day_difference"/>
<field name="day_timesheet"/>
</field>
<page string="By Day" position="replace" />
<notebook position="inside">
<page string="Time balance">
<group colspan="4" col="2" width="600">
<field name="time_account_balance"/>
<field name="working_hour"/>
<field name="attendance_hour"/>
<separator string="Timesheet numbers until the viewed working period." colspan="4" />
<field name="total_time_account_balance"/>
<field name="total_working_hour"/>
<field name="total_attendance_hour"/>
</group>
</page>
</notebook>
</data>
</field>
</record>
oit.hr.timesheet.sheet.form
人力资源时间表
形式
然后,人力资源/时间跟踪/我的时间表完全崩溃。但当我进入管理/定制/用户界面/菜单项,选择“我的时间表”菜单项,将其操作从“ir.actions.server”修改为“ir.actions.act\u window”,并选择对象“hr\u Timesheet\u sheet.sheet”,然后选择我的视图“oit.hr.Timesheet.sheet.form”作为对象的表单视图时,请选择我的视图对象树视图的“oit.hr.timesheet.sheet.tree.simplified”
然后我正确显示了“我的时间表”表单。
这是为什么?我认为我的视图代码中有些东西与文件hr\u Timesheet\u sheet/hr\u Timesheet\u sheet\u data.xml中定义的“my Timesheet”菜单和“ir.actions.server”不兼容,这里我将openerp6代码粘贴到hr\u Timesheet\u sheet\u data.xml中:
<record id="ir_actions_server_timsheet_sheet" model="ir.actions.server">
<field eval="5" name="sequence"/>
<field eval=""""code"""" name="state"/>
<field eval=""""ir.actions.server"""" name="type"/>
<field name="model_id" ref="model_hr_timesheet_current_open"/>
<field eval="[(6,0,[])]" name="child_ids"/>
<field eval=""""action = self.pool.get('hr.timesheet.current.open').open_timesheet(cr, uid, object.id, context)"""" name="code"/>
<field eval=""""True"""" name="condition"/>
<field eval=""""My Timesheet"""" name="name"/>
</record>
<record id="menu_act_hr_timesheet_sheet_form_my_current" model="ir.ui.menu">
<field name="name">My Timesheet</field>
<field eval="1" name="sequence"/>
<field name="parent_id" ref="hr_attendance.menu_hr_time_tracking"/>
<field name="icon">STOCK_JUSTIFY_FILL</field>
<field name="action" ref="ir_actions_server_timsheet_sheet"/>
</record>
我的时间表
存货
请帮助我获得正确的查看代码或解决方案,这样我就不需要更改“我的时间表”菜单的信息“升级自定义模块后!非常感谢 错误堆栈跟踪将有助于确定问题。你能发布它吗?在这里发布你的错误日志,这将有助于追踪我的朋友,目前我在打开“我的时间表”表单时有此日志,但我认为它没有显示问题,因为我在安装自定义模块和未安装模块时都会收到此日志。无论如何,我将日志字符串粘贴到这里:警告:osv.browse\u record.ir.actions.act\u窗口:在browse\u record(ir.actions.act\u窗口,1553)中找不到ID[1553L]的字段值。感谢您的帮助!