product_standard_margin
Compute and show standard margin, margin rate, and markup for products based on current sale and cost prices with tax inclusion taken into account.
Key Features
- product.product: Computes and stores sale price excluding VAT alongside margin amount, margin rate, and markup rate based on list and standard prices with tax handling.
- product.template: Mirrors margin, margin rate, markup, and sale price excluding VAT computations at the template level to update correctly when editing templates.
- product views: Adds the computed margin, margin rate, and markup fields to product variant and template form and tree views with appropriate widgets and variant visibility.