gpt4 book ai didi

python - 奥杜 v10 "Field timesheet_ids does not exist"

转载 作者:行者123 更新时间:2023-12-01 02:46:19 26 4
gpt4 key购买 nike

project.issue 模型具有 timesheet_ids 字段,该字段对于 account.analytic.line 来说是 one2Many。我正在为project_issue.project_issue_form_view 创建向导。表单有时间表页面:

<page string="Timesheets" attrs="{'invisible': [('project_id', '=', False)]}" modifiers="{'invisible': [['project_id', '=', false]]}">
<field name="timesheet_ids" colspan="4" nolabel="1" context="{'default_user_id' : uid, 'default_project_id': project_id}" modifiers="{}"/>
</page>

它是通过扩展 View 创建的。当我尝试向向导添加字段时,我收到“字段 timesheet_ids 不存在”。有人能指出我这里可能出现什么问题吗?

<record id="project_issue_wizard" model="ir.ui.view">
<field name="name">project.task.wizard.name</field>
<field name="model">project.issue</field>
<field name="arch" type="xml">
<form string="Project Issue Wizard">
<group>
<field name="timesheet_ids"/>
</group>
<footer>
<button name="create_request"
string="Finished" type="object"
class="btn-primary"/>
<button string="Cancel"
class="btn-default"
special="cancel" />
</footer>
</form>
</field>
</record>

最佳答案

显然,我的 View 优先并首先加载,然后是创建 timesheet_ids 字段的 View 。我只需要设置优先级字段...

关于python - 奥杜 v10 "Field timesheet_ids does not exist",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45231912/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com