Skip to Content
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
2271 Представления

I have activated developer mode but I still can't find company properties in it

Аватар
Отменить

What do you mean by company properties? Can you provide some examples?

Лучший ответ

Odoo18 -> activate developer mode and go to menu "Settings/user defined default" - it is now a JSON field


Аватар
Отменить
Лучший ответ

The values of company-dependent fields are now stored in a JSON column on the record instead of separately via the ir.property model.

Example:

Customers can have a different pricelist for each Company.

The property_product_pricelist field is where we store the pricelist.

We only store something if the pricelist is different from the default.

The JSON value is a dict {company_id: value} mapping company ids to the field's value.


See https://github.com/odoo/odoo/pull/175627

The Company Properties Menu has been removed, since the ir.property model is no longer part of Odoo 18.0


Аватар
Отменить
Автор

So I need to open the code now, right?

I don't know what you want to do, you asked where to find them.

Автор

Sorry, what I meant was, so to see company properties I have to open the code? Because previously without opening the code I could see company properties. Is there a way to see it without opening the code? Because I am Odoo Functional

I don't understand 'open the code'. Export the record(s) and include the property field to see the value for the active Company, or use SQL to see the values for all Companies. If in SQL the field is empty, it means no value has been set (so the default is the value).

Лучший ответ

In v17 these were ir.property records, now these are fields and in v18, you'll find it in the fields views (in debug mode in Settings > Technical > Database structure > Fields) and filter on the ones that have "company_dependent is set"

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
нояб. 24
652
0
нояб. 24
695
0
мая 25
143
0
мая 25
204
3
мар. 25
799