commit
b14bc65e45
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue