diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2026-03-02 10:16:23 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2026-03-02 10:16:23 +0700 |
| commit | fad81778927ee717d284efbe64c8deb5723556ff (patch) | |
| tree | f9b753047bf999d05fdd209622ab37dba7195ba6 /fixco_custom | |
| parent | d18a5e4e79bad1193198160abeff73302767f509 (diff) | |
<Miqdad> auto paid
Diffstat (limited to 'fixco_custom')
| -rwxr-xr-x | fixco_custom/models/stock_picking.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fixco_custom/models/stock_picking.py b/fixco_custom/models/stock_picking.py index 449959b..cd3a963 100755 --- a/fixco_custom/models/stock_picking.py +++ b/fixco_custom/models/stock_picking.py @@ -316,7 +316,13 @@ class StockPicking(models.Model): # check validity diakhir new_move.with_context(check_move_validity=True).action_post() - + + lines_to_reconcile = ( + account_move.line_ids + new_move.line_ids + ).filtered(lambda l: l.account_id.internal_type == 'receivable' and not l.reconciled) + + if lines_to_reconcile: + lines_to_reconcile.reconcile() return action |
