Files
odoo_source/addons/stock_sms/views/res_config_settings_views.xml
T
Ankita Raval 6e8e468e61 [FIX] stock_sms : Modify SMS confirmation settings name
Before Commit:
-The SMS confirmation settings doesn't have the right name.

After Commit:
-We change the field string 'SMS Validation with stock move'
to 'SMS Validation'.

closes odoo/odoo#46085

Task-id: 2185325
X-original-commit: d5edd512c128844598af4acedda57d75bf4d33d7
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-02-24 11:53:11 +00:00

26 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_config_settings_view_form_stock" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.delivery.stock</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="stock.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='module_stock_sms']" position="replace">
<field name="stock_move_sms_validation"/>
</xpath>
<xpath expr="//label[@for='module_stock_sms']" position="replace">
<label for="stock_move_sms_validation" string="SMS Confirmation"/>
</xpath>
<xpath expr="//div[@id='stock_confirmation_sms']" position="replace">
<div class="row mt16" attrs="{'invisible': [('stock_move_sms_validation', '=', False)]}">
<label for="stock_sms_confirmation_template_id" string="SMS Template" class="col-lg-4 o_light_label"/>
<field name="stock_sms_confirmation_template_id" class="oe_inline" attrs="{'required': [('stock_move_sms_validation', '=', True)]}" context="{'default_model': 'stock.picking'}"/>
</div>
<widget name="iap_buy_more_credits" service_name="sms" attrs="{'invisible': [('stock_move_sms_validation', '=', False)]}"/>
</xpath>
</field>
</record>
</odoo>