mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] stock_exception: bump version, add security rules, add ondelete to selection field, and slightly refactor unit test
This commit is contained in:
committed by
Juan Pablo Ticse
parent
0126459a91
commit
bcc5e29ee1
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user