我在 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)
我非常感谢您的帮助和支持。
问候,