Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4357 Lượt xem

Hi,

I need to add a custom information (the brand of the product) in the product model (product.template).
I can see there are 2 options :

  • Create a custom fields in Settings -> Technical -> Models (or Fields)
  • Add a property in the product.template form (⚙ -> Add Properties)

But what is the difference of both options and the possible impact to take into consideration ?

Thank you

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Can you elaborate on an impact on API for both options? Thanks.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

In Odoo, creating custom fields in Settings are stored in the database may have a slight performance impact, especially with a large number of fields and require technical knowledge and access to the settings. While in Add a property, fields are simpler to add and do not impact performance as they are not stored as separate entities in the database.


Hope it helps

Ảnh đại diện
Huỷ bỏ
Tác giả

Hi !
Thank you for your answer !

Do you know where are stored the data when using Add a property ?
For custom fieds, it is stored directly in the model (for example product.sales model for orders), but how can we access the "Add a property" data ? I need to access it through the XML RPC API from a 3rd party application

Thank you

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 12 24
13314
2
thg 6 24
1506
2
thg 5 24
3123
1
thg 4 21
3263
3
thg 2 21
4271