You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
616 B

  1. odoo.define('beesdoo_product.models', function (require) {
  2. "use strict";
  3. var models = require('point_of_sale.models');
  4. var _super_PosModel = models.PosModel.prototype;
  5. models.PosModel = models.PosModel.extend({
  6. initialize: function (session, attributes) {
  7. var product_model = _.find(this.models, function(model){
  8. return model.model === 'product.product';
  9. });
  10. product_model.fields.push('total_with_vat');
  11. // Inheritance
  12. return _super_PosModel.initialize.call(this, session, attributes);
  13. },
  14. });
  15. });