0

我在 Windows localhost 中使用 Odoo v11,我还是初学者。

最近,我尝试编辑 posticket,突然间,销售点模块停止加载它并保持空白页。

我已经清除了浏览器的缓存并重新启动了 odoo 服务,它起作用了。

但是,收据未显示,错误消息如下所示:

Uncaught TypeError: Cannot read property 'vat_label' of null
http://localhost:8069/point_of_sale/static/src/js/models.js:2121
Traceback:
TypeError: Cannot read property 'vat_label' of null
at child.export_for_printing 
(http://localhost:8069/point_of_sale/static/src/js/models.js:2121:44)
at Class.get_receipt_render_env 
(http://localhost:8069/point_of_sale/static/src/js/screens.js:1538:28)
at Class.render_receipt 
(http://localhost:8069/point_of_sale/static/src/js/screens.js:1616:77)
at Class.show 
(http://localhost:8069/point_of_sale/static/src/js/screens.js:1505:14)
at Class.prototype.(anonymous function) [as show] 
(http://localhost:8069/web/static/src/js/core/class.js:90:38)
at Class.show_screen 
(http://localhost:8069/point_of_sale/static/src/js/gui.js:116:33)
at Class.finalize_validation 
(http://localhost:8069/point_of_sale/static/src/js/screens.js:2071:22)
at Class.validate_order [as _super] 
(http://localhost:8069/point_of_sale/static/src/js/screens.js:2080:18)
at Class.validate_order 
(http://localhost:8069/pos_mercury/static/src/js/pos_mercury.js:687:14)
at Class.validate_order 
(http://localhost:8069/web/static/src/js/core/class.js:123:38)

编辑 :

我已经删除了HTML我插入 posticket 的所有代码,现在它仅在我使用资产激活开发人员模式时才有效。当停用并尝试生成 pos sale 收据时,它会出现此错误:

Uncaught TypeError: Cannot read property 'vat_label' of null
http://localhost:4883/web/content/2266-abace1e/point_of_sale.assets.js:197
Traceback:
TypeError: Cannot read property 'vat_label' of null
at child.export_for_printing (http://localhost:4883/web/content/2266-
abace1e/point_of_sale.assets.js:197:863)
at Class.get_receipt_render_env (http://localhost:4883/web/content/2266-
abace1e/point_of_sale.assets.js:379:1110)
at Class.render_receipt (http://localhost:4883/web/content/2266-
abace1e/point_of_sale.assets.js:379:2226)
at Class.show (http://localhost:4883/web/content/2266-
abace1e/point_of_sale.assets.js:379:409)
at Class.prototype.(anonymous function) [as show] 
(http://localhost:4883/web/content/2189-
2963aaa/web.assets_common.js:3816:488)
at Class.show_screen (http://localhost:4883/web/content/2266-
abace1e/point_of_sale.assets.js:314:48)
at Class.finalize_validation (http://localhost:4883/web/content/2266-
abace1e/point_of_sale.assets.js:400:1111)
at Class.validate_order [as _super] (http://localhost:4883/web/content/2266-
abace1e/point_of_sale.assets.js:400:1226)
at Class.validate_order (http://localhost:4883/web/content/2266-
abace1e/point_of_sale.assets.js:448:6)
at Class.validate_order (http://localhost:4883/web/content/2189-
2963aaa/web.assets_common.js:3819:371)

我非常感谢您的帮助和支持。

问候,

4

3 回答 3

1

事实证明,<t t-esc="widget.pos.company.name"/>在 posticket 中,从modles.jsat返回了无效值vat_label: company.country.vat_label,。不幸的是,我已经删除了这两行,现在一切正常。

我会一直对此进行调查,并会及时通知您。

感谢您的支持和帮助。

问候, Mhdbtashi

于 2018-03-13T07:01:31.690 回答
0

昨晚我在设置页面中从公司删除国家数据后发生在我身上。但是当我把我的国家放回我的公司时。它再次起作用。不确定这是否有帮助。我是一个非技术人员。

于 2018-04-25T10:57:24.383 回答
-1

此错误与国家和名为Tax IVA name 的字段有关,您的公司需要默认建立一些国家。

于 2018-07-09T23:48:24.493 回答