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
})
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
0
nov. 23
|
38 | ||
Open popup when point of sale is loaded
Resolvido
|
|
1
mai. 23
|
2561 | |
|
0
fev. 16
|
5645 | ||
Odoo 14: Reload Point Of Sale
Resolvido
|
|
1
abr. 24
|
2094 | |
Create sales order from pos session
Resolvido
|
|
1
fev. 22
|
5316 |