diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2024-02-21 16:39:10 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2024-02-21 16:39:10 +0700 |
| commit | 0face879a802bf1a15d1065d59db64f723b4e8d3 (patch) | |
| tree | 9f44ac76c341a0a053af09cc8ab63c9848478f74 | |
| parent | 1b321129a53dcd218cab565f7c47210f70c84fdc (diff) | |
Fix error post account move
| -rw-r--r-- | indoteknik_custom/models/account_move.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py index a9db212f..7eb65e9f 100644 --- a/indoteknik_custom/models/account_move.py +++ b/indoteknik_custom/models/account_move.py @@ -122,7 +122,7 @@ class AccountMove(models.Model): sum_qty_invoice = sum_qty_order = 0 for line in purchase_order.order_line: sum_qty_invoice += line.qty_invoiced - sum_qty_order += line.product_uom_qty + sum_qty_order += line.product_qty if sum_qty_invoice > sum_qty_order: raise UserError('Error Qty Invoice akan lebih besar dari Qty Order jika lanjut Posting') |
