[MIG] sale_planner: to Odoo 13.0

This commit is contained in:
Jared Kipe
2020-10-31 12:50:08 -07:00
committed by Leo Pinedo
parent 13b751b33d
commit 2dbfd2eee7
8 changed files with 45 additions and 44 deletions

View File

@@ -9,7 +9,6 @@ except ImportError:
class Partner(models.Model):
_inherit = 'res.partner'
@api.multi
def geo_localize(self):
# We need country names in English below
for partner in self.with_context(lang='en_US'):

View File

@@ -8,7 +8,6 @@ class ProductTemplate(models.Model):
string="Order Planner Policy",
help="The Order Planner Policy to use when making a sale order planner.")
@api.multi
def get_planning_policy(self):
self.ensure_one()
return self.property_planning_policy_id or self.categ_id.property_planning_policy_categ_id

View File

@@ -7,7 +7,6 @@ from odoo.addons.resource.models.resource import make_aware
class ResourceCalendar(models.Model):
_inherit = 'resource.calendar'
@api.multi
def plan_days_end(self, days, day_dt, compute_leaves=False, domain=None):
"""
Override to `plan_days` that allows you to get the nearest 'end' including today.

View File

@@ -4,7 +4,6 @@ from odoo import api, fields, models
class SaleOrder(models.Model):
_inherit = 'sale.order'
@api.multi
def action_planorder(self):
plan_obj = self.env['sale.order.make.plan']
for order in self: