I am in the process of adding a new column labeled "Mark Up" to the invoice line. The markup value is intended to be calculated using the quantity and price, subsequently updating the subtotal. However, I am encountering an issue where the markup value is not being reflected in the total. I would appreciate your assistance in resolving this matter.
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
333
Lượt xem
Hi! 👋,
To add a new "Mark Up" column in invoice lines and include its value in subtotal and total, you'll need to:
- Add a custom field (e.g., markup_amount) to account.move.line.
- Override _compute_amount in the same model to include this field in subtotal calculation.
- Update views to show the new column on the invoice form and tree.
- Adjust reports if needed to reflect the updated totals.
This requires a custom module with Python and XML changes.
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ý
Thank You !It is working now