Skip to Content
Menu
This question has been flagged
2808 Views

Hi everybody,

I'm trying to update informations in OrderWidget from a pos.xml when customer is selected or unselected but this widget don't update. With the same conditions in other widgets (ProductListWidget and ActionButtonWidget) it's works fine.

Sorry for rendering the code but the code tool does'nt work

#<t t-extend="OrderWidget">
#<t t-jquery =".order-container" t-operation="append">
#<t t-if="widget.pos.get_client()">
#<div style="width:100%;height:50px;line-height:50px;background:green;color:#FFF;"><t t-escap="widget.pos.get_client().name"/></div>
#</t>
#<t else="">
#<div style="width:100%;height:50px;line-height:50px;background:red;color:#FFF ">No client</div>
#</t>
#</.... closing ....


the same code in ActionButtonWidget and ProductListWidget works fine... I'm really disapointing about this.

Thanks for your help.

Michael

Avatar
Discard
Related Posts Replies Views Activity
0
Dec 24
46
1
Dec 24
170
0
Nov 24
83
1
Nov 24
152
1
Nov 24
187