[IMP] hr_recruitment:improved xpath,code
bzr revid: tpa@tinyerp.com-20130530113246-zgtt6uzj2uwdhuzk
This commit is contained in:
parent
0b61104463
commit
d7962f9651
|
@ -145,7 +145,7 @@ class hr_job(osv.osv):
|
|||
def job_recruitment(self, cr, uid, ids, *args):
|
||||
for job in self.browse(cr, uid, ids):
|
||||
no_of_recruitment = job.no_of_recruitment == 0 and 1 or job.no_of_recruitment
|
||||
self.write(cr, uid, [job.id], {'state': 'recruit', 'no_of_recruitment': no_of_recruitment}, context=context)
|
||||
self.write(cr, uid, [job.id], {'state': 'recruit', 'no_of_recruitment': no_of_recruitment})
|
||||
return True
|
||||
|
||||
def job_open(self, cr, uid, ids, *args):
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<label for="module_document_ftp"/>
|
||||
</div>
|
||||
</div>
|
||||
<xpath expr="//div/div[@name='hr_recruitment']" position="after">
|
||||
<xpath expr="//div[@name='hr_recruitment']" position="after">
|
||||
<div attrs="{'invisible': ['|',('module_hr_recruitment','=',False),('alias_domain', '=', False)]}">
|
||||
<label string="Your job email addess"/>
|
||||
<field name="alias_prefix" class="oe_inline" attrs="{'required': [('alias_domain', '!=', False)]}"/>
|
||||
|
|
Loading…
Reference in New Issue