Extending and/or overriding Screen objects are easy. But copying the pattern does not work for Orderline object..
Here is my code:
odoo.define('pult_pos.main2', function (require) {
"use strict";
var pos_model = require('point_of_sale.models')
pos_model.Orderline.include({
get_display_price: function() {
console.log('GetDisplayPrice 22 CALLED');
return this.get_base_price();
},
});
})
What is wrong?