How to update the parent entity specific field using python in odoo 9
<p>I have a problem on updating the state of the parent table in hr.job table.</p>

<p>I inherit 'hr.job' table and i want to update the 'state' field</p>

<p>I have a table named: 'job_req_tbl' inherits 'hr_job'</p>

<p>Both have same field named 'state'</p>

<p>in my web_app screen there is a button named "Confirm" , and when the user click it I want 'hr_job' > 'state' value from 'open' to 'recruit'</p>

<p>I have resolved with following code:</p>

<pre><code>@api.multi
def action_click(self):
    self.hr_job.state = 'recruit'
</code></pre>

python openerp odoo-9 odoo-view