diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-04-28 09:34:12 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-04-28 09:34:12 +0700 |
| commit | 8b532b193a47c6be35bcfb49b77849458a379cee (patch) | |
| tree | 94733fe2bb5a15e5e30abf238fe49d2a9de86aaf | |
| parent | 6dfa0b1ec5c9fd60f2adee26b7dbb1de3aea5302 (diff) | |
push
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index 64dc1499..a6b3373f 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -1192,7 +1192,7 @@ class StockPicking(models.Model): if not invoice: continue - if not picking.date_doc_kirim or not invoice.invoice_date and not picking.so_lama: + if picking.so_lama and not picking.date_doc_kirim or not invoice.invoice_date: raise UserError("Tanggal Kirim atau Tanggal Invoice belum diisi!") picking_date = fields.Date.to_date(picking.date_doc_kirim) |
