diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-02 17:09:02 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-02 17:09:02 +0700 |
| commit | a91ffe639f73b8feac0e933524e92ed3e4168e69 (patch) | |
| tree | 81bde8da9f9ea598b77a965ea0edc7e9519c2b16 | |
| parent | a3150fba1ce5b57c57fcd6dae8b0b2c61308709b (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 a017a090..b253090a 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -1201,7 +1201,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 (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) |
