Odoo Help
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
|
etc.
how to extend the db.js point of sale? odoo v9.0
I want to add functions and define init but I don't know what is ahead of js.
with the others inheritances, I used for this inheritance :
odoo.define('pos_modification.DB', function (require) {
"use strict";
var DB = require('point_of_sale.DB');
DB= DB.extend({
and I tested :
odoo.define('pos_modification.DB', function (require) {
"use strict"; var DB = require('point_of_sale.DB');
DB.PosDB=DB.PosDB.extend({
if I change the module point of sale by adding the changes (in init etc.) it works
edit :
init: function (options) {but I had :
this._super(options);
; this.myvar = [];}
Myfunction: function(options){
...
}...
});
return DB;
});
self.bd.myfunction is not a function
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 1/22/16, 4:24 AM |
Seen: 1006 times |
Last updated: 3/10/17, 6:55 AM |
but then what it's your issue?
thanks you for your comment, I had informations