跳至內容
選單
此問題已被標幟
2710 瀏覽次數

Hi All,

I am using Odoo 14 in Ubuntu.

I want to filter customers data in POS so that the companies will not be displayed in that list


My .js file


odoo.define('point_of_sales.models',function(require){
"use strict";

exports.PosModel = Backbone.Model.extend({

models: [
{
model: 'res.partner',
label: 'load_partners',
fields: ['name','street','city','state_id','country_id','vat','lang',
'phone','zip','mobile','email','barcode','write_date',
'property_account_position_id','property_product_pricelist'],
console.log('domain started');
domain: function(self) {
console.log('domain added');
return ['is_company','=',false]
};
loaded: function(self,partners){
self.partners = partners;
self.db.add_partners(partners);

};
},
],
});
}),


I have mentioned it in the xml file too.

But the list is displaying all the data. Please let me know the changes required.

頭像
捨棄
作者

Got the solution

Emon What was your solution??

相關帖文 回覆 瀏覽次數 活動
0
11月 23
1941
0
12月 22
2495
0
10月 22
3713
0
6月 22
1773
1
5月 22
5281