Hello
I have set up filtering on a field "contract" which should show the different analytical accounts whose partner_id of that is equal to partner_id in view crm.case
Here is my code:
Quote:
'analytic_account_id': fields.many2one ( 'account.analytic.account', 'Contract', domain ="[(' partner_id ',' = ', crm_case.partner_id )]"),
The fields 'analytic_account_id' is in the view 'crm.case.work'
but currently it is not working! the problem came from 'crm_case.partner_id'
So, is it possible to set a domain filtering if the field isn't in the current view?
Thanks