Skip to content

Commit 06f3a88

Browse files
Bhavesh Odedrabrian10048
Bhavesh Odedra
authored andcommitted
[FIX] ERROR: null value in column location_id violates not-null constraint (#2)
1 parent 0330d10 commit 06f3a88

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

fieldservice_sale/models/sale_order_line.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -146,5 +146,6 @@ def _field_service_generation(self):
146146
def _prepare_invoice_line(self):
147147
res = super()._prepare_invoice_line()
148148
# by default: don't group fsm_orders on account.move.line
149-
res.update({"fsm_order_ids": [(6, 0, [self.fsm_order_id.id])]})
149+
if self.fsm_order_id:
150+
res.update({"fsm_order_ids": [(6, 0, [self.fsm_order_id.id])]})
150151
return res

fieldservice_sale/readme/CONTRIBUTORS.rst

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Maxime Chambreuil <[email protected]>
55
* Wolfgang Hall <[email protected]>
66
* Raphael Lee <[email protected]>
7+
* Bhavesh Odedra <[email protected]>
78

89
* Serpent Consulting Services Pvt. Ltd. <[email protected]>
910
* Brian McMaster <[email protected]>

0 commit comments

Comments
 (0)