在one2many字段中创建新记录时出现上述错误。
代码如下:
def _compute_timesheet_hour(self):
for val in self:
self._cr.execute('''SELECT project_id, employee_id, SUM(unit_amount) FROM account_analytic_line
where project_id = %(project_id)s and employee_id = %(employee_id)s
GROUP BY pr
我想做一个分割的字段,但为什么结果总是0.00?
def _get_interest_top(self):
for line in self:
line.interest_top = 6/12
interest_top = fields.Float(compute='_get_interest_top',string='Interest TOP')
结果应该是0.5,对吗?
我想使用odoo 8中的engine生成我自己的excel报表。
但我的错误是:
coercing to Unicode: need string or buffer, type found <type 'exceptions.TypeError'>,coercing to Unicode: need string or buffer, type found,<traceback object at 0x07366CD8>
谁来告诉我这个错误。我会非常感谢你.!
many2one字段必须命名为“othermodel_id”吗?
我的课程模型上有一个many2one字段,我把它命名为“专业”,当我试图为我的课程选择一个专业(比如机械工程微积分)时,我得到了一个通用验证错误。在我的控制台中,有一个错误的SQL更新查询失败了:
2016-07-12 18:55:34,530 5484 INFO test openerp.sql_db: bad query: UPDATE
"aidentest_course" SET "major"=14,"write_uid"=1,"write_date"=
我试图注册付款,但收到了这样的错误:
The operation cannot be completed, probably due to the following:
- deletion: you may be trying to delete a record while other records still reference it
- creation/update: a mandatory field is not correctly set
[object with reference: name - name]
在服务器日志中呈现这样记录:
2017-12-22 17:03
我正在处理odoo 12 (python3.6),我试图从product.template继承并隐藏条形码字段,但我遇到了以下错误:
element'<xpath expr="//field[@name='barcode']">' not found in parent view
这是我的gesimmo_views.xml
<odoo>
<record model="ir.ui.view" id="view_form_gesimmo">
<field n