Skip to content
Snippets Groups Projects
user avatar
Nathan Marotte (nama) authored
Issue: With a custom tax computation that depends on the quantity, when
the price of the item is 0, when changing the quantity,
the taxes are not changed

Steps to reproduce :
 1) Install Accounting, and account_tax_python
 2) Accounting > Configuration > Accounting > Taxes : create
 a task :
   Tax Computation: Python Code
   Python code : `result = quantity * 0.3`
 3) Accounting > Customer Invoices > New Invoice
 4) Add a line with a product, unit price = 0, quantity = 2
 5) Change the quantity, the tax does not change

Why is that a bug:
 When the price is 0, changing the quantity doesn't affect
 the price so the onchange is not triggered even though the
 line changed

opw-2559200

closes odoo/odoo#75086

Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
44403a6c
History

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials