[FIX] odex_benefit: FIX bug

This commit is contained in:
younes 2025-12-09 09:52:08 +01:00
parent 36013603be
commit 6e426d2826
2 changed files with 4 additions and 7 deletions

View File

@ -100,13 +100,10 @@ class ReasearcherFamilyWizard(models.TransientModel):
}
def action_return_to_benefit(self):
self.ensure_one()
#self.ensure_one()
return {
'type': 'ir.actions.act_window',
'res_model': 'grant.benefit',
'view_mode': 'form',
'res_id': self.benefit_id.id,
'target': 'main'
'type': 'ir.actions.act_window_close',
'flags': {'search_view': True}
}
def send_visit_date_email(self):

View File

@ -38,7 +38,7 @@
</group>
<footer>
<button name="submit_family" type="object" string="Submit" class="oe_highlight" attrs="{'invisible':['|',('benefit_id','=',False),('is_submitted','=',True)]}"/>
<button name="action_return_to_benefit" type="object" string="Return to Record" class="btn-secondary"/>
<button special="cancel" string="Return to Record" class="btn-secondary"/>
</footer>
</sheet>
</form>