I have a model customer
and another model company
. The model customer
has a field named company_id
, which is a Many2one pointing to company
. Besides, company
has a field of type Char named trade_name
.
Now, I'm creating the kanban view of customer
, using Qweb. What I want is to show the trade name of the company of each customer.
<t t-field="company_id.trade_name"/>
That line is not working, I get a blank space in the kanban view where the field should be. I also tried with t-esc
, and writing <field...>
as I'd do with a tree or form view, but they don't accept the dot notation.
I know it perfectly works in reports. What about kanban views? How can I manage such a simple task?
company_trade_name
inres_partner
, which is a char related to'company_id.trade_name'
. That way I can use it on a kanban view. But if someone finds a better way, please let me know! – forvas