diff options
| author | Romain Derie <rde@odoo.com> | 2018-12-21 13:47:58 +0000 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2018-12-21 13:47:58 +0000 |
| commit | d73c4e583afbb3fbe2c236c718c04ded7a5e127d (patch) | |
| tree | 198644674c35213e44f240ebc4b26d7103912fee /addons/website_hr_recruitment/views | |
| parent | 8d6bb22298ed2980124831118a805d3a6a9622f9 (diff) | |
[FIX] website_*: prevent record to be unpublished on website change
Before this commit, when changing the website field in a record form view,
the is_published field would be force to false, ending unpublishing the record
if it was published.
That behavior was coming from the fact that is_published field is missing from
the form view. Thus, onchange on website is triggering a recompute server side
without is_published as the JS framework is not sending the field.
The ORM is then fallbacking on default Boolean value (False) for is_published
when sending back the onchange result.
This would only appear on object with 'website.published.multi.mixin' and with
website_id in the form view.
task-1919689
closes odoo/odoo#29707
Diffstat (limited to 'addons/website_hr_recruitment/views')
| -rw-r--r-- | addons/website_hr_recruitment/views/hr_recruitment_views.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/website_hr_recruitment/views/hr_recruitment_views.xml b/addons/website_hr_recruitment/views/hr_recruitment_views.xml index b74351b389a..059041a31b5 100644 --- a/addons/website_hr_recruitment/views/hr_recruitment_views.xml +++ b/addons/website_hr_recruitment/views/hr_recruitment_views.xml @@ -20,6 +20,7 @@ <button class="oe_stat_button" name="website_publish_button" type="object" icon="fa-globe"> <field name="website_published" widget="website_button"/> + <field name="is_published" invisible="1"/> </button> </div> </field> |
