Hello community ,
I'm trying to extend this class to add some functions exports.Order = Backbone.Model.extend({ it is difrrent from the most of the classes how we can extend this type of classes ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello community ,
I'm trying to extend this class to add some functions exports.Order = Backbone.Model.extend({ it is difrrent from the most of the classes how we can extend this type of classes ?
I've found a solution for people who need this:
var models = require('point_of_sale.models');
models.Order = models.Order.extend({
// your code here
})
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
0
lis 23
|
38 | ||
Open popup when point of sale is loaded
Rozwiązane
|
|
1
maj 23
|
2510 | |
|
0
lut 16
|
5620 | ||
Odoo 14: Reload Point Of Sale
Rozwiązane
|
|
1
kwi 24
|
2040 | |
Create sales order from pos session
Rozwiązane
|
|
1
lut 22
|
5275 |