[MIG] stock_exception: bump version, add security rules, add ondelete to selection field, and slightly refactor unit test

This commit is contained in:
Cedric Collins
2022-01-15 14:32:53 -06:00
committed by Juan Pablo Ticse
parent 0126459a91
commit bcc5e29ee1
5 changed files with 13 additions and 10 deletions

View File

@@ -9,7 +9,10 @@ class ExceptionRule(models.Model):
model = fields.Selection(
selection_add=[
('stock.picking', 'Transfer'),
]
],
ondelete={
'stock.picking': 'cascade',
},
)
picking_ids = fields.Many2many(
'stock.picking',