main #7

Merged
admin merged 620 commits from main into dev 2026-03-29 13:03:25 +00:00
Showing only changes of commit d81b19bfc6 - Show all commits

View File

@@ -74,8 +74,8 @@ class InvoiceLine(metaclass=PoolMeta):
if move_line.second_currency:
move_line.amount_second_currency = amount
else:
move_line.debit = Decimal(0)
move_line.credit = -amount_converted
move_line.debit = -amount_converted
move_line.credit = Decimal(0)
move_line.account = self.product.account_stock_out_used
if move_line.second_currency:
move_line.amount_second_currency = amount
@@ -87,8 +87,8 @@ class InvoiceLine(metaclass=PoolMeta):
if move_line.second_currency:
move_line.amount_second_currency = amount
else:
move_line.debit = amount_converted
move_line.credit = Decimal(0)
move_line.debit = Decimal(0)
move_line.credit = amount_converted
move_line.account = self.product.account_stock_out_used
if move_line.second_currency:
move_line.amount_second_currency = -amount