Browse Source

[MIG] partner_phonecall_schedule: Migration to 12.0.

pull/675/head
Anand Kansagra 6 years ago
parent
commit
ae47143f0e
  1. 2
      partner_phonecall_schedule/README.rst
  2. 5
      partner_phonecall_schedule/__manifest__.py
  3. 2
      partner_phonecall_schedule/i18n/partner_phonecall_schedule.pot
  4. 10
      partner_phonecall_schedule/models/res_partner.py
  5. 2
      partner_phonecall_schedule/readme/CONTRIBUTORS.rst
  6. 1
      partner_phonecall_schedule/static/description/index.html

2
partner_phonecall_schedule/README.rst

@ -75,6 +75,8 @@ Contributors
* Jairo Llopis <jairo.llopis@tecnativa.com>
* David Vidal <david.vidal@tecnativa.com>
* Anand Kansagra <kansagraanand@hotmail.com>
Maintainers
~~~~~~~~~~~

5
partner_phonecall_schedule/__manifest__.py

@ -3,12 +3,11 @@
{
"name": "Partner phonecalls schedule",
"summary": "Track the time and days your partners expect phone calls",
"version": "11.0.1.0.0",
"version": "12.0.1.0.0",
"category": "Customer Relationship Management",
"website": "https://github.com/OCA/crm",
"website": "https://github.com/OCA/partner-contact",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"resource",

2
partner_phonecall_schedule/i18n/partner_phonecall_schedule.pot

@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"

10
partner_phonecall_schedule/models/res_partner.py

@ -7,6 +7,8 @@ from odoo import api, fields, models
class ResPartner(models.Model):
"""Added phonecall details in the partner."""
_inherit = "res.partner"
phonecall_available = fields.Boolean(
@ -59,12 +61,8 @@ class ResPartner(models.Model):
def _phonecall_available_domain(self):
"""Get a domain to know if we are available to call a partner."""
now = self.env.context.get("now", datetime.now())
try:
now = fields.Datetime.from_string(now)
except TypeError:
# `now` is already a datetime object
pass
now = fields.Datetime.from_string(self.env.context.get(
"now", datetime.now()))
date = fields.Date.to_string(now)
now_tz = fields.Datetime.context_timestamp(self, now)
float_time = now_tz.hour + ((now_tz.minute / 60) + now_tz.second) / 60

2
partner_phonecall_schedule/readme/CONTRIBUTORS.rst

@ -2,3 +2,5 @@
* Jairo Llopis <jairo.llopis@tecnativa.com>
* David Vidal <david.vidal@tecnativa.com>
* Anand Kansagra <kansagraanand@hotmail.com>

1
partner_phonecall_schedule/static/description/index.html

@ -423,6 +423,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<li>David Vidal &lt;<a class="reference external" href="mailto:david.vidal&#64;tecnativa.com">david.vidal&#64;tecnativa.com</a>&gt;</li>
</ul>
</li>
<li>Anand Kansagra &lt;<a class="reference external" href="mailto:kansagraanand&#64;hotmail.com">kansagraanand&#64;hotmail.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">

Loading…
Cancel
Save