Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
2ce3aa17 by Cédric Krier at 2023-06-02T17:46:11+02:00
Delete delivered to warehouse when party is deleted
- - - - -


1 changed file:

- modules/stock/party.py


Changes:

=====================================
modules/stock/party.py
=====================================
@@ -91,7 +91,8 @@
     "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=[



View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/2ce3aa179bbd9f18c0f1973f822a3cfacac54a7b

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/2ce3aa179bbd9f18c0f1973f822a3cfacac54a7b
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to