diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-05 17:01:05 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-05 17:01:05 +0700 |
| commit | fcc0596b649ef53a6280530b60c89a2a0dc0ebec (patch) | |
| tree | b8bd3e6e7799ec0e2897e286132fd3e3ee7b8d73 | |
| parent | 4fc562965d80b3315e58568c42075edf154256dc (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 0b78706c..fadcc3c2 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -1203,7 +1203,7 @@ class StockPicking(models.Model): if not invoice: continue - if not picking.so_lama and (not picking.date_doc_kirim or not invoice.invoice_date): + if not picking.so_lama and invoice 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) |
