Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged

Hello everyone,

I am using Odoo 12 point of sale and have the need to access every tax included on each pos order line and make some logic depending on the tax configuration (tax name, tax amount and some custom fields I added).

For instance:

var OrderlineSuper = pos_model.Orderline;
pos_model.Orderline = pos_model.Orderline.extend({
export_as_JSON: function(){
var data = OrderlineSuper.prototype.export_as_JSON.apply(this, arguments);
data.test_field = this.product.display_name;

//Here I need to browse through every tax included on pos order line (access taxes fields) and make some logic
 
console.log('DATA:', data);
return data;
},
});

Can anyone help me please?

Thank you in advance

PM

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
srp 21
2782
1
dub 19
9936
0
srp 17
3672
3
pro 23
5821
1
bře 22
11600