mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2026-10-26 07:50:05 -05:00
15 lines
452 B
Python
15 lines
452 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from flectra import fields, models
|
|
|
|
|
|
class PhoneBlacklistRemove(models.TransientModel):
|
|
_name = 'phone.blacklist.remove'
|
|
_description = 'Remove phone from blacklist'
|
|
|
|
phone = fields.Char(string="Phone Number", readonly=True, required=True)
|
|
reason = fields.Char(name="Reason")
|
|
|
|
def action_unblacklist_apply(self):
|
|
return self.env['phone.blacklist'].action_remove_with_reason(self.phone, self.reason)
|