I am trying to customize my point of sale in the module and what I need to do is obtain the values: customer name, address, product name, quantity, price, subtotal, tax, order total at the moment of pressing the validate button in a directory, list someone could guide me how to do it in version 12.0
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
3
Replies
1937
Views
Hi Manfred Lopez,
You need to inherit 'finalize_validation' js function
pos_screen.PaymentScreenWidget.include({
show: function(){
this._super();
var self = this;
},
finalize_validation: function() {
this._super();
var self = this;
var order = this.pos.get_order(); // get all the info regarding purchase
var customer = this.pos.get_client(); // customer info
// other logics here
...
...
},
});
Thanks for the reply.
Hi,
first you can inherit 'finalize_validation' function:
pos_screen.PaymentScreenWidget.include({
show: function(){
this._super();
var self = this;
},
finalize_validation: function() {
this._super();
var self = this;
var order = this.pos.get_order();
var customer = this.pos.get_client();
// other logics here, what you want
......
},
}); Thank you
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Apr 22
|
1800 | ||
|
0
Dec 24
|
1 | ||
|
2
Dec 24
|
86 | ||
|
3
Nov 24
|
2223 | ||
|
0
Sep 24
|
118 |