-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] website_event_sale: company mandatory to access pricelist
Before this commit, when creating an event without setting the company, an error 500 is raised, this arises because the pricelist is not found, it depends on the company. Now, the company field is mandatory and the pricelist is reachable. opw-2079246 closes odoo#37975 Signed-off-by: Jorge Pinna Puissant (jpp) <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<odoo> | ||
<record id="event_form_mandatory_company" model="ir.ui.view"> | ||
<field name="name">event.event.view.form.inherit.company.mandatory</field> | ||
<field name="model">event.event</field> | ||
<field name="inherit_id" ref="event.view_event_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='company_id']" position="attributes"> | ||
<attribute name="required">1</attribute> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |