Odoo MissingError您尝试访问的文档之一已被删除,请刷新后重试 [英] Odoo MissingError One of the documents you are trying to access has been deleted, please try again after refreshing
问题描述
Odoo警告,MissingError您要访问的文档之一已被删除,请刷新后重试.
Odoo Warning, MissingError One of the documents you are trying to access has been deleted, please try again after refreshing.
Am正在访问此按钮action_four_weeks_schedule_form
,如下所示.
Am accessing this button action_four_weeks_schedule_form
which is shown below on .
<field name='multiple_ratecard_id' nolabel="1" options="{'reload_on_button': true}"> <!-- widget="many2many"-->
<tree string="ALLOCATE SPOTS" editable="bottom" >
<button name="action_four_weeks_schedule_form" type="object" string="CREATE RATECARD SCHEDULE" class="oe_highlight" />
multiple_ratecard_id
是一个称为singular的模型的多对多模型,其中具有函数action_four_weeks_schedule_form
这是功能
The multiple_ratecard_id
is a many to many to a model called singular which has the function action_four_weeks_schedule_form
in it
This is the function
def action_four_weeks_schedule_form(self,cr,uid,ids,context):
for id in ids:
order_obj = self.pool.get('ratecard.multiple').browse(cr,uid,id)
my_id=int(order_obj.id)
scheduled_for= order_obj.scheduled_for
code= order_obj.code
return {
'name':_("Four Week Schedule to Process"),
'view_mode': 'form',
'view_id': False,
'view_type': 'form',
'res_model': 'four.weeks.schedule',
'context':{'default_scheduled_for':scheduled_for,'default_code':code},
'type': 'ir.actions.act_window',
'nodestroy': True,
'target': 'new',
'domain': '[]',
'flags': {'form': {'action_buttons': True}}
}
我该如何解决此错误并使按钮弹出视图而不是Odoo警告?
How can i solve this error and have the button pop out the view and not the Odoo Warning ?
推荐答案
尝试以下操作:
- 重新启动服务器
- 更新您的模块
- 刷新页面
这篇关于Odoo MissingError您尝试访问的文档之一已被删除,请刷新后重试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!