project_invoice_pogress_compute_qty Twice compute qty UOM convertion

#042913
This commit is contained in:
Raimon Esteve 2021-03-05 14:36:36 +01:00 committed by GitHub
parent 4c21514018
commit 73770236b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,14 @@
diff --git a/trytond/trytond/modules/project_invoice/work.py b/trytond/trytond/modules/project_invoice/work.py
index fcc41a2..3577e1f 100644
--- a/trytond/trytond/modules/project_invoice/work.py
+++ b/trytond/trytond/modules/project_invoice/work.py
@@ -515,9 +515,6 @@ class Work(metaclass=PoolMeta):
invoiced_progress = sum(x.effort_hours for x in self.invoiced_progress)
quantity = self.effort_hours * self.progress - invoiced_progress
- if self.product:
- quantity = Uom.compute_qty(
- hour, quantity, self.product.default_uom)
if quantity > 0:
if not self.product:
raise InvoicingError(

3
series
View File

@ -64,4 +64,7 @@ account_asset.diff # [account_asset] permit update asset running without move ye
issue8834.diff # [account_payment_clearing] Party required when mark a payment succeed and counterpart account is required
project_invoice_progress_compute_qty.diff # [project_invoice] Twice compute qty UOM convertion (to calculate pogress and create invoice line)
issue10068.diff # [trytond] Use safe_join in SharedDataMiddlewareIndex