I need to change the name of the "Product name" field to "Description" of the products template in odoo v13. I don't want to do that name change from the odoo interface, but from a custom addon. And if it is possible to change the characteristics of the existing field from the custom addon.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1
Trả lời
4357
Lượt xem
You can change the string attribute using a custom module you may use the below code for reference:
<xpath expr="//field[@name='reference_filed']" position="attributes">
<attribute name="string">Your String Here</attribute>
</xpath>
. You may override the field as below:
class YourModel(models.Model):
_inherit = 'your.model'
reference_filed = fields.FieldType(string="Your String Here")
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
Multiple Product Edit in Inventory
Đã xử lý
|
|
1
thg 5 24
|
1146 | |
|
1
thg 6 21
|
2878 | ||
|
1
thg 4 21
|
1968 | ||
|
0
thg 12 19
|
5381 | ||
|
1
thg 11 19
|
4033 |