Skip to content

Commit

Permalink
fixing pylint travis
Browse files Browse the repository at this point in the history
  • Loading branch information
lmarion-source committed Jun 2, 2020
1 parent 7899f9b commit dd9c3ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions base_geoengine_demo/models/geo_npa.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ class NPA(geo_model.GeoModel):
city = fields.Char('City', size=64, index=True, required=True)
the_geom = geo_fields.GeoMultiPolygon('NPA Shape')
total_sales = fields.Float(
compute='_get_ZIP_total_sales',
compute='_compute_ZIP_total_sales',
string='Spatial! Total Sales',
)

@api.multi
def _get_ZIP_total_sales(self):
def _compute_ZIP_total_sales(self):
"""Return the total of the invoiced sales for this npa"""
mach_obj = self.env['geoengine.demo.automatic.retailing.machine']
for rec in self:
Expand Down
8 changes: 7 additions & 1 deletion base_geoengine_demo/models/retail_machine.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
# -*- coding: utf-8 -*-
# Copyright 2011-2016 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import geojson


import logging
from odoo import api, fields
from odoo.addons.base_geoengine import geo_model
from odoo.addons.base_geoengine import fields as geo_fields

_logger = logging.getLogger(__name__)
try:
import geojson-
except (ImportError, IOError) as err:
_logger.debug(err)

class RetailMachine(geo_model.GeoModel):
"""GEO OSV SAMPLE"""
Expand Down

0 comments on commit dd9c3ec

Please sign in to comment.