[FIX] sale, purchase: add place holder for product warning fields

closes odoo/odoo#105691

X-original-commit: 4e343409fe6a5752ee1b15197a6e092968830c8c
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
niyasraphy
2022-11-18 12:57:50 +01:00
committed by Victor Feyens
parent ec1e3b5f0d
commit 90ca48bf25
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -58,7 +58,7 @@
</group>
<group string="Warning when Purchasing this Product" groups="purchase.group_warning_purchase">
<field name="purchase_line_warn" nolabel="1" colspan="2"/>
<field name="purchase_line_warn_msg" colspan="2" nolabel="1"
<field name="purchase_line_warn_msg" colspan="2" nolabel="1" placeholder="Type a message..."
attrs="{'required':[('purchase_line_warn','!=','no-message')],'readonly':[('purchase_line_warn','=','no-message')], 'invisible':[('purchase_line_warn','=','no-message')]}"/>
</group>
</group>
+1 -1
View File
@@ -61,7 +61,7 @@
<t groups="sales_team.group_sale_salesman">
<group string="Warning when Selling this Product" groups="sale.group_warning_sale">
<field name="sale_line_warn" nolabel="1" colspan="2"/>
<field name="sale_line_warn_msg" colspan="2" nolabel="1"
<field name="sale_line_warn_msg" colspan="2" nolabel="1" placeholder="Type a message..."
attrs="{'required':[('sale_line_warn','!=','no-message')],'readonly':[('sale_line_warn','=','no-message')]}"/>
</group>
</t>