Skip to content

Commit

Permalink
[FIX] website: make company required on website config
Browse files Browse the repository at this point in the history
Before this commit, There would be a crash if the user tries to remove `website_company_id` from Website configuration as It is used in Backend.

With this commit, we make `website_company_id` required if the Website is set.

Fixes odoo#47967

closes odoo#48064

X-original-commit: 940cc76
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
  • Loading branch information
sswapnesh committed Mar 19, 2020
1 parent 0e81870 commit c092713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/website/views/res_config_settings_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<div class="text-muted">
The company this website belongs to
</div>
<field name="website_company_id"/>
<field name="website_company_id" attrs="{'required': [('website_id', '!=', False)]}" />
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box" id="languages_setting">
Expand Down

0 comments on commit c092713

Please sign in to comment.