Merge pull request #5669 from expsa/tyt

[FIX] odex_benefit: FIX bug
This commit is contained in:
kchyounes19 2025-12-09 09:56:06 +01:00 committed by GitHub
commit b14bc65e45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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): def action_return_to_benefit(self):
self.ensure_one() #self.ensure_one()
return { return {
'type': 'ir.actions.act_window', 'type': 'ir.actions.act_window_close',
'res_model': 'grant.benefit', 'flags': {'search_view': True}
'view_mode': 'form',
'res_id': self.benefit_id.id,
'target': 'main'
} }
def send_visit_date_email(self): def send_visit_date_email(self):

View File

@ -38,7 +38,7 @@
</group> </group>
<footer> <footer>
<button name="submit_family" type="object" string="Submit" class="oe_highlight" attrs="{'invisible':['|',('benefit_id','=',False),('is_submitted','=',True)]}"/> <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> </footer>
</sheet> </sheet>
</form> </form>