[IMP] *: adapt views for phone widget sms enabled default

Task 2123526

This commit adapts the views to take into account
that the phone widget enables sending an sms by default

*: crm, hr, sms, base
This commit is contained in:
Lucas Perais (lpe)
2020-01-27 09:31:53 +00:00
parent d41d627569
commit 9538245267
6 changed files with 19 additions and 19 deletions
+4 -4
View File
@@ -179,7 +179,7 @@
<field name="partner_address_email"
attrs="{'invisible': [('partner_address_email', '=', False)]}" widget="email" string="Email"/>
</div>
<field name="phone" widget="phone" options="{'enable_sms': True}"/>
<field name="phone" widget="phone"/>
</group>
<group name="lead_info" attrs="{'invisible': [('type', '=', 'opportunity')]}">
<label for="contact_name"/>
@@ -198,8 +198,8 @@
</div>
<field name="email_cc" groups="base.group_no_one"/>
<field name="function"/>
<field name="phone" widget="phone" options="{'enable_sms': True}"/>
<field name="mobile" widget="phone" options="{'enable_sms': True}"/>
<field name="phone" widget="phone"/>
<field name="mobile" widget="phone"/>
</group>
<group attrs="{'invisible': [('type', '=', 'lead')]}">
<field name="date_deadline"/>
@@ -271,7 +271,7 @@
<field name="title" placeholder="Title" domain="[]" options='{"no_open": True}'/>
</div>
<field name="function"/>
<field name="mobile" widget="phone" options="{'enable_sms': True}"/>
<field name="mobile" widget="phone"/>
</group>
<group string="Marketing">
<field name="campaign_id" />
+2 -2
View File
@@ -51,8 +51,8 @@
</div>
<group>
<group>
<field name="mobile_phone" widget="phone"/>
<field name="work_phone" widget="phone"/>
<field name="mobile_phone" widget="phone" options="{'enable_sms': false}"/>
<field name="work_phone" widget="phone" options="{'enable_sms': false}"/>
<field name="work_email" widget="email"/>
<field name="work_location"/>
</group>
+4 -4
View File
@@ -96,8 +96,8 @@
<group>
<group>
<field name="can_edit" invisible="1"/>
<field name="mobile_phone" widget="phone" attrs="{'readonly': [('can_edit', '=', False)]}"/>
<field name="work_phone" widget="phone" attrs="{'readonly': [('can_edit', '=', False)]}"/>
<field name="mobile_phone" widget="phone" attrs="{'readonly': [('can_edit', '=', False)]}" options="{'enable_sms': false}"/>
<field name="work_phone" widget="phone" attrs="{'readonly': [('can_edit', '=', False)]}" options="{'enable_sms': false}"/>
</group>
<group>
<field name="work_email" widget="email" attrs="{'readonly': [('can_edit', '=', False)]}"/>
@@ -139,7 +139,7 @@
options='{"always_reload": True, "highlight_first_line": True}'
attrs="{'readonly': [('can_edit', '=', False)]}"/>
<field name="private_email" string="Email" attrs="{'readonly': [('can_edit', '=', False)]}"/>
<field name="employee_phone" string="Phone" attrs="{'readonly': [('can_edit', '=', False)]}"/>
<field name="employee_phone" string="Phone" attrs="{'readonly': [('can_edit', '=', False)]}" options="{'enable_sms': false}"/>
<field name="employee_bank_account_id" attrs="{'readonly': [('can_edit', '=', False)]}"/>
<field name="km_home_work" attrs="{'readonly': [('can_edit', '=', False)]}"/>
</group>
@@ -167,7 +167,7 @@
</group>
<group string="Emergency">
<field name="emergency_contact" attrs="{'readonly': [('can_edit', '=', False)]}"/>
<field name="emergency_phone" attrs="{'readonly': [('can_edit', '=', False)]}"/>
<field name="emergency_phone" attrs="{'readonly': [('can_edit', '=', False)]}" options="{'enable_sms': false}"/>
</group>
<group string="Work Permit" name="work_permit">
<field name="visa_no" attrs="{'readonly': [('can_edit', '=', False)]}"/>
+1 -1
View File
@@ -14,7 +14,7 @@
<xpath expr="//field[@name='phone']" position="replace">
<label for="phone"/>
<div class="o_row">
<field name="phone" widget="phone" options="{'enable_sms': True}"/>
<field name="phone" widget="phone"/>
</div>
</xpath>
<xpath expr="//field[@name='mobile']" position="replace">
+6 -6
View File
@@ -84,8 +84,8 @@
<field name="function" placeholder="e.g. Sales Director" attrs="{'invisible': [('is_company','=', True)]}"/>
<field name="user_ids" invisible="1"/>
<field name="email" widget="email" context="{'gravatar_image': True}" required="context.get('force_email', False)" attrs="{'required': [('user_ids','!=', [])]}"/>
<field name="phone" widget="phone"/>
<field name="mobile" widget="phone"/>
<field name="phone" widget="phone" options="{'enable_sms': false}"/>
<field name="mobile" widget="phone" options="{'enable_sms': false}"/>
</group>
</form>
</field>
@@ -184,8 +184,8 @@
<group>
<field name="function" placeholder="e.g. Sales Director"
attrs="{'invisible': [('is_company','=', True)]}"/>
<field name="phone" widget="phone"/>
<field name="mobile" widget="phone"/>
<field name="phone" widget="phone" options="{'enable_sms': false}"/>
<field name="mobile" widget="phone" options="{'enable_sms': false}"/>
<field name="email" widget="email" context="{'gravatar_image': True}"/>
</group>
</group>
@@ -441,8 +441,8 @@
</div>
</group>
<group>
<field name="phone" widget="phone"/>
<field name="mobile" widget="phone"/>
<field name="phone" widget="phone" options="{'enable_sms': false}"/>
<field name="mobile" widget="phone" options="{'enable_sms': false}"/>
<field name="email"/>
</group>
</group>
+2 -2
View File
@@ -144,8 +144,8 @@
<div attrs="{'invisible': [('id', '>', 0)]}" groups="base.group_no_one">
<field name="groups_id" readonly="1" widget="many2many_tags" options="{'color_field': 'color'}" style="display: inline;"/> You will be able to define additional access rights by editing the newly created user under the Settings / Users menu.
</div>
<field name="phone" widget="phone"/>
<field name="mobile" widget="phone"/>
<field name="phone" widget="phone" options="{'enable_sms': false}"/>
<field name="mobile" widget="phone" options="{'enable_sms': false}"/>
</group>
</sheet>
</form>