Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
10432 Переглядів

Hi, 

I need to display a res.company custom field in sale_view.xml, how can i do that?

thanks

Аватар
Відмінити
Найкраща відповідь

One way is to create a new field on the sale.order model that relates to the field on res.company you want to see.  As long as there is already a field on the sale.order model that links to res.company, this is possible.  The field that does this is company_id.


1. Settings --> Technical --> Database Structure --> Models

2. Find and open the sale.order model for editing.

3. Click Add an Item to add a new field, like this:


4. Add the new field to your XML, and see it in the Sale Order form view:


Аватар
Відмінити

The Saas Studio release does not give access to advanced settings which would raise the possibility to link the newly created field to the field of the other model (here res.partner)

Автор Найкраща відповідь

Thanks a lot @Ray it work, there is another way to do that? "out of curiosity"

Аватар
Відмінити