This question has been flagged
2432 Views

Hi, I want to show partner's 'ref' instead of 'name' in several views, for example, when making new Sale Order I want to work with 'ref' in partner_id combo (Sale Order form) and I want to search by 'ref' too inside combo, so I pass in context="{'show_ref': True, 'search_ref': True}" in partner_id field from sale.order.form view.

But I'm stack with tree view. I'm trying to do the same here, in Sale Order tree view I want to show partner's 'ref' instead 'name' but context trick doesn't work.

How can I do this?

Avatar
Discard