diff --git a/base_phone_cdr/__manifest__.py b/base_phone_cdr/__manifest__.py index 7db8b75ad..472c28106 100644 --- a/base_phone_cdr/__manifest__.py +++ b/base_phone_cdr/__manifest__.py @@ -3,8 +3,9 @@ { "name": "Base Phone CDR", "category": "web", - "version": "12.0.1.0.0", + "version": "17.0.1.0.0", "author": "Open Source Integrators, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/connector-telephony", "depends": ["base_phone_popup"], "data": [ "view/phone_cdr_view.xml", diff --git a/base_phone_cdr/models/phone_cdr.py b/base_phone_cdr/models/phone_cdr.py index 1242cf79f..649fcf243 100644 --- a/base_phone_cdr/models/phone_cdr.py +++ b/base_phone_cdr/models/phone_cdr.py @@ -55,7 +55,7 @@ def _compute_odoo_user(self): @api.model def create(self, vals): - res = super(PhoneCDR, self).create(vals) + res = super().create(vals) if res.inbound_flag: res.partner_id = self.env["res.partner"].search( [("phone", "=", res.called_id), ("phone", "!=", False)], limit=1 @@ -63,7 +63,7 @@ def create(self, vals): return res def write(self, vals): - res = super(PhoneCDR, self).write(vals) + res = super().write(vals) if vals.get("inbound_flag") or vals.get("called_id"): for rec in self: rec.partner_id = self.env["res.partner"].search( diff --git a/base_phone_cdr/pyproject.toml b/base_phone_cdr/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/base_phone_cdr/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi"