Skip to content
Snippets Groups Projects
Commit 8446039f authored by Jurgen (jugj)'s avatar Jurgen (jugj)
Browse files

[IMP] website_hr_recruitment: Make website_id field always visible


task-3337958

closes odoo/odoo#122271

Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
parent a1fa78cd
Branches
Tags
No related merge requests found
......@@ -41,7 +41,6 @@ class Job(models.Model):
self.is_published = True
else:
self.is_published = False
self.website_id = False
def _compute_website_url(self):
super(Job, self)._compute_website_url()
......
......@@ -37,7 +37,7 @@
</div>
<xpath expr="//div[@name='recruitment_target']" position="after">
<field name="website_published" string="Is Published"/>
<field name="website_id" attrs="{'invisible': [('website_published', '=', False)]}" options="{'no_create': True}" domain="['|', ('company_id', '=', company_id), ('company_id', '=', False)]" groups="website.group_multi_website"/>
<field name="website_id" options="{'no_create': True}" domain="['|', ('company_id', '=', company_id), ('company_id', '=', False)]" groups="website.group_multi_website"/>
</xpath>
</field>
</record>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment