I want to change the unit price in the quotations so it will be the unit price + percentage but when I change it gives me this error 'Properties of base fields cannot be altered in this manner! Please modify them through Python code, preferably through a custom addon!' what should I do?
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ờ
Hi,
Either you can create a custom module to update the field value or you can add a new filed and a compute function for it.
Add the field using studio to the one2many tree view.
Go to the field (Settings ->Technical ->fields)
Add the compute function for the field.
for rec in self:
rec['x_studio_unit_price_updated'] = rec['price_unit']
(use your own function to update the field)
Regards
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ý