Browse Source

Ajout 3 decimale sur popup + Modif droit transaction

12.0
Juliana 4 years ago
parent
commit
2b80cd0fb9
  1. 4
      security/ir.model.access.csv
  2. 6
      static/src/js/container.js
  3. 2
      static/src/xml/pos.xml

4
security/ir.model.access.csv

@ -1,3 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_pos_transaction_pos_user,access_pos_transaction_pos_user,model_pos_transaction,point_of_sale.group_pos_user,1,1,1,1
access_pos_transaction_pos_manager,access_pos_transaction_pos_manager,model_pos_transaction,point_of_sale.group_pos_manager,1,1,1,1
access_pos_transaction_pos_user,access_pos_transaction_pos_user,model_pos_transaction,point_of_sale.group_pos_user,1,0,0,0
access_pos_transaction_pos_manager,access_pos_transaction_pos_manager,model_pos_transaction,point_of_sale.group_pos_manager,1,0,0,0

6
static/src/js/container.js

@ -369,7 +369,7 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require)
self.gui.show_popup('confirm-pesee',{
'title': _t('Merci'),
'body': _t('La pesée est validée'),
'body': _t('Contenant ajouté, vous pouvez vous servir'),
confirm: function(){
self.gui.show_screen(self.next_screen);
},
@ -857,8 +857,8 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require)
options = options || {};
this.name = options.transaction.name ;
this.weight_net = options.transaction.weight_net ;
this.price_product = options.transaction.price_product.toFixed(2); ;
this.weight_net = options.transaction.weight_net.toFixed(3) ;
this.price_product = options.transaction.price_product.toFixed(2);
this.price_net = options.transaction.price_net.toFixed(2);
this._super(options);

2
static/src/xml/pos.xml

@ -171,7 +171,7 @@
</div>
<div class="pos-bottom pos-bottom-confirm">
<div class="pos-confirm-screen">
<p class="text-center">Pesée confirmée.<br/>
<p class="text-center">Merci.<br/>
Vous pouvez passer en caisse</p>
<div class='back-presentation'>
<img class="logo-scan mb-3" src="/vracoop_pos_free_balance_v2/static/src/img/picto-confirm.png" />

Loading…
Cancel
Save