diff options
Diffstat (limited to 'addons/phone_validation')
| -rw-r--r-- | addons/phone_validation/models/mail_thread_phone.py | 2 | ||||
| -rw-r--r-- | addons/phone_validation/views/phone_blacklist_views.xml | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/addons/phone_validation/models/mail_thread_phone.py b/addons/phone_validation/models/mail_thread_phone.py index f13161ad447..d0e9b5b9254 100644 --- a/addons/phone_validation/models/mail_thread_phone.py +++ b/addons/phone_validation/models/mail_thread_phone.py @@ -33,7 +33,7 @@ class PhoneMixin(models.AbstractModel): phone_blacklisted = fields.Boolean( string='Phone Blacklisted', compute="_compute_phone_blacklisted", compute_sudo=True, store=False, search="_search_phone_blacklisted", groups="base.group_user", - help="If the email address is on the blacklist, the contact won't receive mass mailing anymore, from any list") + help="If the phone number is on the blacklist, the contact won't receive mass mailing sms anymore, from any list") @api.depends(lambda self: self._phone_get_number_fields()) def _compute_phone_sanitized(self): diff --git a/addons/phone_validation/views/phone_blacklist_views.xml b/addons/phone_validation/views/phone_blacklist_views.xml index 7ed44da14b9..b04c7352e58 100644 --- a/addons/phone_validation/views/phone_blacklist_views.xml +++ b/addons/phone_validation/views/phone_blacklist_views.xml @@ -15,8 +15,9 @@ <field name="name">phone.blacklist.view.form</field> <field name="model">phone.blacklist</field> <field name="arch" type="xml"> - <form string="Phone Blacklist" duplicate="false"> + <form string="Phone Blacklist" duplicate="false" edit="false"> <sheet> + <widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> <group> <group> <field name="number"/> @@ -44,7 +45,7 @@ </record> <record id="phone_blacklist_action" model="ir.actions.act_window"> - <field name="name">Phone Blacklist</field> + <field name="name">Blacklisted Phone Numbers</field> <field name="res_model">phone.blacklist</field> <field name="view_id" ref="phone_blacklist_view_tree"/> <field name="search_view_id" ref="phone_blacklist_view_search"/> |
