[FIX] pos: display cashier name on receipt, not the user
authorDenis Ledoux <dle@odoo.com>
Fri, 8 Aug 2014 14:05:32 +0000 (16:05 +0200)
committerDenis Ledoux <dle@odoo.com>
Fri, 8 Aug 2014 14:05:32 +0000 (16:05 +0200)
addons/point_of_sale/static/src/xml/pos.xml

index 9fcf208..c450125 100644 (file)
             <br />
             <t t-esc="widget.company.name"/><br />
             Phone: <t t-esc="widget.company.phone || ''"/><br />
-            User: <t t-esc="widget.user.name"/><br />
+            User: <t t-esc="widget.pos.get('cashier') and widget.pos.get('cashier').name or widget.user.name"/><br />
             Shop: <t t-esc="widget.shop_obj.name"/><br />
             <br />
             <table>