Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2733 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

Got the solution

Emon What was your solution??

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 23
1950
0
thg 12 22
2517
0
thg 10 22
3719
0
thg 6 22
1790
1
thg 5 22
5320