Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Done by RHT on the 05/12/2024
- #Task : https://www.odoo.com/odoo/project.task/project.task/4348234
- # Need : margin computation based on the sale price (exluded) and margin
- # Pastebin : https://pastebin.com/QXC5L9FL
- for product in self:
- total_tax_percentage = sum(tax.amount for tax in product.taxes_id) / 100
- # Calculate the price excluding tax
- product['x_studio_list_price_excluded'] = product.list_price / (1 + total_tax_percentage)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement