Delete delivered to warehouse when party is deleted
This commit is contained in:
1 parent
de95e79417
commit
d0b24968c8
1 file changed
+2
-1
@@ -91,7 +91,8 @@ class PartyDeliveredToWarehouse(ModelSQL):
|
||||
"Party Delivered to Warehouse"
|
||||
__name__ = 'party.party-delivered_to-stock.location'
|
||||
|
||||
party = fields.Many2One('party.party', "Party", required=True)
|
||||
party = fields.Many2One(
|
||||
'party.party', "Party", required=True, ondelete='CASCADE')
|
||||
location = fields.Many2One(
|
||||
'stock.location', "Location", required=True, ondelete='CASCADE',
|
||||
domain=[
|
||||
|
||||
Reference in new issue
Block a user