Skip to Content
Menú
This question has been flagged
2 Respostes
8559 Vistes

hi all,

I create a domain of study programs and semester but in the domain that I made half domain syntax and syntax does not work like this : 

" < Field name = " krs_ids " colspan = " 4 " nolabel = " 1 " domain = " [ ( ' prodi_id ' , ' = ' , prodi_id ) , ( 'name' , ' = ' , semester_kurikulum ) ] " >

"

Avatar
Descartar

'krs_ids' is one2many or many2one fields ?

Krs_ids is one2many fields

13 Apr 2015 22.39, "Diego Calzadilla" <diego__mor13-hotmail.com@mail.odoo.com> menulis:

A new answer for domain in XML has been posted. Click here to access the post.

--
Diego Calzadilla
Sent by Odoo Inc. using Odoo about Forum Post domain in XML

try to put your domain in your many2one fields, i never used domain in one2many fields

Please update your question and put your full code in there

Best Answer

Hi, krs_ids should be one2many field. You also need to add : '|' (meaning or)  or  '&'( meaning and ) before, it would be something like this:

<field name = " krs_ids " colspan = " 4 " nolabel = " 1 " domain = " [ '|', ( ' prodi_id ' , ' = ' , prodi_id ) , ( 'name' , ' = ' , semester_kurikulum ) ] " >

Avatar
Descartar