Odoo POS receipt error - odoo

I'm using Odoo v11 in windows localhost and I'm still beginner.
Recently, i tried to edit posticket and suddenly, the point of sale module stops loading it keep blank page.
I have cleared cache for browser and restart odoo service, it worked.
But, the receipt not showing and error message appears as showing below:
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)
Edit :
I have removed all HTML codes i inserted to posticket, now it only working when i activate developer mode with assets. When deactivate and try generate pos sale receipt it gives this error:
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)
I really appreciate your help and support.
Regards,

It turns out that <t t-esc="widget.pos.company.name"/> in posticket is returning that invalid values from modles.js at vat_label: company.country.vat_label,.
Unfortunately, I have removed those two lines and everything works fine now.
I keep investigating on this and i will keep you updated.
Thanks for your support and assistance.
Regards,
Mhdbtashi

It happened to me last night after I delete country data from my company in the settings page. But when I put my country back to my company set-up. it works again. Not sure if this can help. I'm a non-tech person.

this error is related to the country and the field called Tax IVA name, and your company need established by default some country.

Related

Cant edit Odoo website, i get UncaughtPromiseError > OwlError

Can someone help me with the following...
When i want to edit the website of odoo it keeps loading... when i use the pencil next to a menu item and try to edit it, i get the following errors
`UncaughtPromiseError > OwlError Uncaught Promise > An error occured
in the owl lifecycle (see this Error's "cause" property) OwlError: An
error occured in the owl lifecycle (see this Error's "cause" property)
OwlError#https://odoo.example.net/web/assets/251-7c5bc10/web.assets_common.min.js:1098:1
handleError#https://odoo.example.net/web/assets/251-7c5bc10/web.assets_common.min.js:1105:101
handleError#https://odoo.example.net/web/assets/251-7c5bc10/web.assets_common.min.js:1931:29
complete#https://odoo.example.net/web/assets/251-7c5bc10/web.assets_common.min.js:1343:37
processFiber#https://example.net/web/assets/251-7c5bc10/web.assets_common.min.js:1907:43
flush/this.frame</<#https://example.net/web/assets/251-7c5bc10/web.assets_common.min.js:1903:109
flush/this.frame<#https://example.net/web/assets/251-7c5bc10/web.assets_common.min.js:1903:87
Caused by: TypeError: can't access property "body",
this.website.pageDocument is null
setup/<#https://odoo.example.net/web/assets/285-63ebd6b/web.assets_backend.min.js:13355:672
useEffect/<#https://odoo.example.net/web/assets/251-7c5bc10/web.assets_common.min.js:1939:145
complete#https://odoo.example.net/web/assets/251-7c5bc10/web.assets_common.min.js:1341:196
processFiber#https://odoo.example.net/web/assets/251-7c5bc10/web.assets_common.min.js:1907:43
flush/this.frame</<#https://example.net/web/assets/251-7c5bc10/web.assets_common.min.js:1903:109
flush/this.frame<#https://odoo.example.net/web/assets/251-7c5bc10/web.assets_common.min.js:1903:87
`
I have replaced my real domain with example.net for privacy
I have tried to regenerate assets in developer mode under tools hoping this would solve it...

Error: Cannot read properties of undefined (reading 'prop')

I consistently found this error in Odoo 14 CE.
Steps to reproduce:
Create Sale Quotation
Add line
Select Product
Fill Quantity
Quickly Fill Unit Price immediately after 4.
This issue happens in every form. Just perform the quick actions repeatedly in very fast and continuous actions.

Unhandled rejection Error: Chrome still being created

When I use { insertDefaultUI: false } to create a video I get an "Unhandled rejection Error: Chrome still being created" when trying to cleanup after I'm done with session.disconnect().
Any ideas...?
I'm on the TokBox dev team.
The error is not something you should be concerned with, it's something internal to the SDK.
The bug is that the error is appearing at all. I have created a bug report and this error should disappear in a future release. Until then you can safely ignore it.
Thanks for the report.
I'm having the very same problem when trying to unpublish my publisher
Could you guys provide a solution?
Unhandled rejection Error: Chrome still being created
at Object.chromeMixin.reset (https://static.opentok.com/v2/js/opentok.js:41755:16)
at reset (https://static.opentok.com/v2/js/opentok.js:42837:19)
at Publisher.destroy (https://static.opentok.com/v2/js/opentok.js:43211:7)
at defaultAction (https://static.opentok.com/v2/js/opentok.js:43524:20)
at executeDefaultAction (https://static.opentok.com/v2/js/opentok.js:25584:19)
at Object.api.dispatchEvent (https://static.opentok.com/v2/js/opentok.js:25735:7)
at Publisher.self.dispatchEvent (https://static.opentok.com/v2/js/opentok.js:25427:19)
at Object.streamDestroyed (https://static.opentok.com/v2/js/opentok.js:43527:16)
at Object.unpublishFromSession (https://static.opentok.com/v2/js/opentok.js:43507:16)
at Session.unpublish (https://static.opentok.com/v2/js/opentok.js:47031:19)
at Object.me.stop (https://x/rt.js:498:17)
at b.$scope.callBreak (https://x/ler.js:16:24)
at fn (eval at compile (https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js:239:266), <anonymous>:4:165)
From previous event:
at createChromeMixin (https://static.opentok.com/v2/js/opentok.js:41672:21)
at new Publisher (https://static.opentok.com/v2/js/opentok.js:42826:23)
at Object.initPublisher (https://static.opentok.com/v2/js/opentok.js:44275:21)
at Object.me.start (https://x/rt.js:457:27)
at b.$scope.start (https://x/ler.js:6:24)
at fn (eval at compile (https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js:239:266), <anonymous>:4:161)
at e (https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js:284:187)
at b.$eval (https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js:148:347)
at b.$apply (https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js:149:52)
at HTMLButtonElement.<anonymous> (https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js:284:239)
at HTMLButtonElement.dispatch (https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js:4:8549)
at HTMLButtonElement.r.handle (https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js:4:5252)
I might be a bit late, but I'll share my findings. When using a custom UI on your publisher, use the following event:
publisher.on('streamDestroyed',function(event){ event.preventDefault();});
This disallows opentok calling widget destroying events which causes the exception related to this question, however now I don't know how to stop the stream lol, since if I call event.target.destroy() will generate the same exception, lol ... so I'm trying to figure that out.

Uncaught TypeError: Cannot read property 'apply' of undefined when printing invoices and when creating database

I am using odoo from eclipse. Whenever I try to create a new database i get this error. Also when I try to print invoice i am getting this error, now I am unable to print any invoices due to this.

Prestashop Maintenance mode error

First things first I am new to Prestashop.
I have two issues. First is when I'm in the maintenance mode and I add my ip adres to gain access, I still can't access my frontoffice. This gives server error in my Chrome Browser.
But the bigger issue is when I turn the Maintenance mode off (and deleting my IP adress from the list) There is nothing. Just a blank screen. After a little research I found how to turn the error reporting on in defines.inc.php like this:
/* Debug only */
define('_PS_MODE_DEV_', true);
After this I got this error(s):
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/.sites/78/site58/web/modules/categoriesbar/category-bar-level.tpl" on line 8 "{include file=$tpl_dir./category-tree-branch.tpl node=$child last='true'}" - Unexpected "/", expected one of: "{" , "$" , "identifier" , INTEGER' in /home/.sites/78/site58/web/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /home/.sites/78/site58/web/tools/smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home/.sites/78/site58/web/tools/smarty/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(40, '/') #2 /home/.sites/78/site58/web/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(40, '/') #3 /home/.sites/78/site58/web/tools/smarty/sysplugins/smarty_internal_t in /home/.sites/78/site58/web/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 665
any help would be appreciated :)
P.S.
I upgraded the Prestashop from 1.2.x to the 1.5.4 version...
Maybe it has something to do with this?
The error tells you there is an error in the template. Try changing the line to
{include file="$tpl_dir./category-tree-branch.tpl" node=$child last='true'}