diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2026-01-06 15:25:19 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2026-01-06 15:25:19 +0700 |
| commit | 163a039add87b9d3dc3d3b9240e72034edb9d597 (patch) | |
| tree | fdace4793a6adc1d88cbcde6756e83f83a017016 /fixco_custom/models/purchase_order.py | |
| parent | 5230d59fcd311ff5d3fa53c3907e971e97d4fb44 (diff) | |
| parent | d221d6dd6bafba1c49fb942a802160832c0fdb82 (diff) | |
Merge branch 'main' of https://bitbucket.org/altafixco/fixco-addons
merge
Diffstat (limited to 'fixco_custom/models/purchase_order.py')
| -rw-r--r-- | fixco_custom/models/purchase_order.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fixco_custom/models/purchase_order.py b/fixco_custom/models/purchase_order.py index 92d31a2..b4adb7d 100644 --- a/fixco_custom/models/purchase_order.py +++ b/fixco_custom/models/purchase_order.py @@ -227,9 +227,12 @@ class PurchaseOrder(models.Model): unique_soo = list(set(soo_numbers)) if len(unique_soo) == 1: order.soo_number = unique_soo[0] + if not order.picking_ids.number_soo: + order.picking_ids[0].number_soo = unique_soo[0] elif len(unique_soo) > 1: order.soo_number = ", ".join(unique_soo) - + if not order.picking_ids.number_soo: + order.picking_ids[0].number_soo = ", ".join(unique_soo) else: order.soo_number = False |
