尝试通过添加一些字段来扩展时间表并更改其他字段的名称,但是当我继承了相关模型“ account.analytic.line”时: 并在清单中将'analytic'模块添加为depends
<div id="container">
<div id="content">
<div class="cell" style="background-color: #aaa;">
<img class="header-img" src="https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png"/>
</div>
<div class="cell">
<div style="background-color: #bbb;">
<table style="width:100%">
<tr>
<td>Menu</td>
<td>Menu</td>
<td>Menu</td>
<td>Menu</td>
</tr>
</table>
<table style="width:100%">
<tr>
<td>Menu</td>
<td>Menu</td>
<td>Menu</td>
<td>Menu</td>
<td>Menu</td>
</tr>
</table>
</div>
</div>
</div>
</div>
以下是清单 .py文件
from odoo import models, fields, api
class mham_app(models.Model):
_inherit='account.analytic.line'
date_deadline = fields.Date('Deadline')
is_done = fields.Boolean('Done?')
active = fields.Boolean('Active?', default=True)
以下是完全错误的消息
# any module necessary for this one to work correctly
'depends': ['analytic'],
尽管没有任何型号名称mham_app.mham_app 如果我将名称更改为其他名称,也会发生错误