sale_usability: code cleanup
This commit is contained in:
@@ -47,8 +47,7 @@ class SaleOrder(models.Model):
|
|||||||
res.append({'subtotal': subtotal})
|
res.append({'subtotal': subtotal})
|
||||||
subtotal = 0.0 # reset counter
|
subtotal = 0.0 # reset counter
|
||||||
has_sections = True
|
has_sections = True
|
||||||
else:
|
elif not line.display_type:
|
||||||
if not line.display_type:
|
|
||||||
subtotal += line.price_subtotal
|
subtotal += line.price_subtotal
|
||||||
res.append({'line': line})
|
res.append({'line': line})
|
||||||
if has_sections: # insert last subtotal line
|
if has_sections: # insert last subtotal line
|
||||||
|
|||||||
Reference in New Issue
Block a user