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