[FIX] pos_restaurant: Issue 614981: product renaming from name to display_name was not done in the pos_restaurant module, resulting in empty product names in various places
This commit is contained in:
parent
6c779e736a
commit
a644c4c3c1
|
@ -81,19 +81,19 @@ function openerp_restaurant_multiprint(instance,module){
|
|||
if (typeof old[product] === 'undefined'){
|
||||
add.push({
|
||||
'id': product,
|
||||
'name': this.pos.db.get_product_by_id(product).name,
|
||||
'name': this.pos.db.get_product_by_id(product).display_name,
|
||||
'quantity': current[product],
|
||||
});
|
||||
}else if( old[product] < current[product]){
|
||||
add.push({
|
||||
'id': product,
|
||||
'name': this.pos.db.get_product_by_id(product).name,
|
||||
'name': this.pos.db.get_product_by_id(product).display_name,
|
||||
'quantity': current[product] - old[product],
|
||||
});
|
||||
}else if( old[product] > current[product]){
|
||||
rem.push({
|
||||
'id': product,
|
||||
'name': this.pos.db.get_product_by_id(product).name,
|
||||
'name': this.pos.db.get_product_by_id(product).display_name,
|
||||
'quantity': old[product] - current[product],
|
||||
});
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ function openerp_restaurant_multiprint(instance,module){
|
|||
if(typeof current[product] === 'undefined'){
|
||||
rem.push({
|
||||
'id': product,
|
||||
'name': this.pos.db.get_product_by_id(product).name,
|
||||
'name': this.pos.db.get_product_by_id(product).display_name,
|
||||
'quantity': old[product],
|
||||
});
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<li t-attf-class="orderline #{ selected ? 'selected' : ''} #{ quantity !== line.get_quantity() ? 'partially' : '' }"
|
||||
t-att-data-id="id">
|
||||
<span class="product-name">
|
||||
<t t-esc="line.get_product().name"/>
|
||||
<t t-esc="line.get_product().display_name"/>
|
||||
</span>
|
||||
<span class="price">
|
||||
<t t-esc="widget.format_currency(line.get_display_price())"/>
|
||||
|
|
Loading…
Reference in New Issue