summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-06-16 16:16:33 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-06-16 16:16:33 +0700
commit1e3f935b94ba73ec07aa79c5cfd2165cbbf99556 (patch)
tree9c060b4014bba831f2c2b96c87eafaa6e7fcdd49
parent3c8ff8cb6a24dd1ddec7d34313722d7dee6f23a3 (diff)
parentdba82e88291ac63473b8f45dd7a4da5b4d147973 (diff)
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into odoo-backup
-rw-r--r--indoteknik_custom/models/stock_picking.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index f552ff3f..eabef37c 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -1365,7 +1365,7 @@ class StockPicking(models.Model):
picking_date = fields.Date.to_date(picking.date_doc_kirim)
invoice_date = fields.Date.to_date(invoice.invoice_date)
- if picking_date != invoice_date and picking.update_date_doc_kirim_add:
+ if picking_date != invoice_date and picking.update_date_doc_kirim_add and not picking.so_lama:
raise UserError("Tanggal Kirim (%s) tidak sesuai dengan Tanggal Invoice (%s)!" % (
picking_date.strftime('%d-%m-%Y'),
invoice_date.strftime('%d-%m-%Y')