Skip to content
Extraits de code Groupes Projets
Valider 459bad88 rédigé par Juliana's avatar Juliana
Parcourir les fichiers

[FIX]Correction compute amount

parent 94147890
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -118,7 +118,6 @@ class AccAccount(models.Model):
)
def _compute_amount(self):
for move in self:
total_untaxed = 0.0
total_tax = 0.0
total = 0.0
......@@ -126,9 +125,9 @@ class AccAccount(models.Model):
total += line.price_total
if move.is_tva and move.tax_id:
total_tax = ((total_untaxed * move.tax_id.amount) / 100)
total_tax = ((total * move.tax_id.amount) / 100)
move.amount_untaxed = total_untaxed
move.amount_untaxed = total
move.amount_tax = total_tax
move.amount_total = total + total_tax
......
......@@ -93,7 +93,7 @@
<field name="acc_operation_id" optional="show"/>
<field name="acc_injection_id" optional="show"/>
<field name="acc_delivery_id" optional="show"/>
<field name="amount_untaxed" string="Tax Excluded" sum="Total" optional="show"/>
<field name="amount_untaxed" string="Montant H.T." sum="Total" optional="show"/>
<field name="amount_tax" string="Tax" sum="Total" optional="hide"/>
<field name="amount_total" string="Total" sum="Total" decoration-bf="1" optional="show"/>
<field name="currency_id" invisible="1"/>
......
......@@ -11,9 +11,6 @@
<group>
<field name="start_date"/>
</group>
<group>
<field name="end_date"/>
</group>
</group>
<field
name="acc_sale_price_ids"
......@@ -28,7 +25,6 @@
<field name="price" />
<field name="acc_operation_id" />
<field name="start_date" />
<field name="end_date" />
</tree>
</field>
<!-- <footer>-->
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter