0

I am getting the following error in OpenERP:

TypeError: 'function' is not a py.js object

I have made duplicates of the account.invoice and account.invoice.line by the names sgs.invoice and sgs.invoice.line. i am copying data from account.invoice and account.invoice.line to the duplicate tables. But when I try to edit the data in sgs.invoice.line, I get the above error on clicking any many2one field or any text field having on_change method associated with it. What can be the problem?

4

1 回答 1

0

也许您在上下文中被引用到一个不存在的字段,例如:

<field name="invoice_line" nolabel="1" widget="one2many_list" context="{'type': type}">

和领域:

<field name="type"/>

主表中不存在。

于 2013-10-22T15:37:57.027 回答