跳至内容
菜单
此问题已终结

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

形象
丢弃
相关帖文 回复 查看 活动
1
8月 21
2808
1
4月 19
9966
0
8月 17
3702
3
12月 23
5877
1
3月 22
11659