summaryrefslogtreecommitdiff
path: root/fixco_custom/models
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-02-25 14:38:34 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-02-25 14:38:34 +0700
commit64a1909a983ef6d6039c6c82defa938084319fbc (patch)
treeb10c9019356fc21fd3c36146868121ae04bbea77 /fixco_custom/models
parent3388ae350b6a8113558beba5bc0120897974a25b (diff)
<Miqdad> reverse invoice now using date done SRT
Diffstat (limited to 'fixco_custom/models')
-rwxr-xr-xfixco_custom/models/stock_picking.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/fixco_custom/models/stock_picking.py b/fixco_custom/models/stock_picking.py
index b4e1922..0f80750 100755
--- a/fixco_custom/models/stock_picking.py
+++ b/fixco_custom/models/stock_picking.py
@@ -276,6 +276,12 @@ class StockPicking(models.Model):
})
action = reversal.reverse_moves()
+ # Force write invoice date using date done SP
+ new_move = self.env['account.move'].browse(action.get('res_id'))
+ if new_move:
+ new_move.write({
+ 'invoice_date': self.date_done,
+ })
return action