[FIX] sale: show sales warning only when feature is activated in settings
after this commit: https://github.com/odoo/odoo/commit/8b91cab67f122667ecc250a8b016b152929c61e2 sales warning fields sale_warn and sale_warn_msg fields in the partner form is displayed always without respecting the option in sales settings. the fields will be displayed always even if the feature is unticked in the settings. after this commit, the fields will be shown only once the feature is activated in settings. closes odoo/odoo#108987 X-original-commit: d247279c9e42469d0a120fa8d673fec69186c7e5 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
@@ -52,8 +52,8 @@
|
||||
</button>
|
||||
</div>
|
||||
<xpath expr="//page[@name='internal_notes']//field[@name='comment']" position="after">
|
||||
<group groups="sale.group_warning_sale,sales_team.group_sale_salesman">
|
||||
<group col="2">
|
||||
<group groups="sales_team.group_sale_salesman">
|
||||
<group groups="sale.group_warning_sale" col="2">
|
||||
<separator string="Warning on the Sales Order" colspan="2"/>
|
||||
<field name="sale_warn" nolabel="1" colspan="2" required="1"/>
|
||||
<field name="sale_warn_msg" nolabel="1" string="Message" placeholder="Type a message..." colspan="2"
|
||||
|
||||
Reference in New Issue
Block a user