[FIX] exp_transaction_documents: set employee falsewhen fields changed

This commit is contained in:
Samir Ladoui 2024-12-26 14:20:52 +01:00
parent dee6cb34ad
commit b50e3df77e
1 changed files with 1 additions and 2 deletions

View File

@ -30,8 +30,7 @@ class ForwardTransactionWizard(models.TransientModel):
domain = []
if rec.forward_type == 'employee' and rec.internal_unit:
domain = [('id', 'in', rec.env['cm.entity'].search([('type', '=', 'employee'), ('parent_id', '=', rec.internal_unit.id)]).ids)]
elif rec.forward_type == 'employee':
rec.employee = False
rec.employee = False
return {
"domain": {
"employee": domain