[FIX] sale: Traceback on clearing quotation date in sale order form

before this commit, in sale order form view, while clearing the quotation date it was showing Traceback error. field is already required in the model level, so removing the conditional required attribute from the view

after this commit, the quotation date is required

closes odoo/odoo#111066

X-original-commit: f8db67897c1b533a591eaf48ae18b625b1dd4d33
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
mehjabinfarsana
2023-01-26 18:51:37 +01:00
committed by Victor Feyens
parent e084b5dcf9
commit 418c46be03
+1 -1
View File
@@ -263,7 +263,7 @@
<div class="o_td_label" attrs="{'invisible': [('state', 'in', ['draft', 'sent'])]}">
<label for="date_order" string="Order Date"/>
</div>
<field name="date_order" attrs="{'required': [('state', 'in', ['sale', 'done'])], 'invisible': [('state', 'in', ['draft', 'sent'])]}" nolabel="1"/>
<field name="date_order" attrs="{'invisible': [('state', 'in', ['draft', 'sent'])]}" nolabel="1"/>
<field name="has_active_pricelist" invisible="1"/>
<field name="show_update_pricelist" invisible="1"/>
<label for="pricelist_id"