Community mailing list archives

Odoo 9 POS Inheritance issue

- 02/12/2016 10:54:56
Hi All,

I am trying to inherit ClientListScreenWidget in the screens.js of the point of sale in order to replace the function save_client_details.

In order to make the test easy I have only change the part marked in yellow. 


The rest is a copy of the original function.

While adding this my custom module does not load. I get the following error message.

Imagen integrada 1

This is the code of mymodule.js. 

odoo.define('point_of_sale_extension', function (require) {
"use strict";
var modscreen = require('point_of_sale.screens');


save_client_details: function(partner) {
   var self = this;
   var fields = {};
   this.$('.client-details-contents .detail').each(function(idx,el){
       fields[] = el.value;
   if (! {
   if (this.uploaded_picture) {
       fields.image = this.uploaded_picture;
   }           = || false;
   fields.country_id   = fields.country_id || false;
   fields.barcode      = fields.barcode || '';
   new Model('res.partner').call('create_from_ui',[fields]).then(function(partner_id){
           'title': _t('Error: Could not Save Changes'),
           'body': _t('Your Internet connection is probably down.'),


Please help.

Luis Miguel Sarabia