Skip to content

Commit

Permalink
Merge pull request #6 from apuestaya/12.0
Browse files Browse the repository at this point in the history
fast district selection
  • Loading branch information
dkrimmer84 authored Apr 29, 2020
2 parents 3428031 + cc7c806 commit 645a1b3
Show file tree
Hide file tree
Showing 22 changed files with 3,668 additions and 3,911 deletions.
661 changes: 0 additions & 661 deletions LICENSE

This file was deleted.

32 changes: 6 additions & 26 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,8 @@
# -*- coding: utf-8 -*-
###############################################################################
# #
# #
# Part of Odoo. See LICENSE file for full copyright and licensing details. #
# #
# #
# #
# Co-Authors Odoo LoCo #
# Localización funcional de Odoo para Colombia #
# #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU Affero General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU Affero General Public License for more details. #
# #
# You should have received a copy of the GNU Affero General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
###############################################################################
# Part of Odoo. See LICENSE file for full copyright and licensing details.

# Copyright (C) Dominic Krimmer (Plastinorte S.A.S).
# Author Dominic Krimmer, dominic.krimmer@gmail.com
# Co-Authors Hector Ivan Valencia Muñoz

from . import models
from . import controller
from . import controllers
59 changes: 17 additions & 42 deletions __manifest__.py
Original file line number Diff line number Diff line change
@@ -1,55 +1,30 @@
# -*- coding: utf-8 -*-
###############################################################################
# #
# #
# Part of Odoo. See LICENSE file for full copyright and licensing details. #
# #
# #
# #
# Co-Authors Odoo LoCo #
# Localización funcional de Odoo para Colombia #
# #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU Affero General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU Affero General Public License for more details. #
# #
# You should have received a copy of the GNU Affero General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
###############################################################################

{
'name': 'Terceros - Colombia',
'name': 'Colombia - Terceros',
'category': 'Localization',
'version': '12.0',
'author': 'Odoo LoCo',
'version': '9.0.0.1.1',
'author': 'Dominic Krimmer, Plastinorte S.A.S',
'license': 'AGPL-3',
'maintainer': 'Odoo LoCo',
'website': 'https://github.com/odooloco',
'summary': 'Terceros Colombia: Extendido de Partner / '
'Modulo de Contactos - Odoo 12.0',
'maintainer': 'dominic.krimmer@gmail.com',
'website': 'https://www.plastinorte.com',
'summary': 'Colombia Terceros: Extended Partner / '
'Contact Module - Odoo 9.0',
'images': ['images/main_screenshot.png'],
'depends': [
'base',
'l10n_co',
'account'
'account',
'base'
],
'data': [
'security/ir.model.access.csv',
'views/ciiu.xml',
'data/l10n_cities_co_data.xml',
'data/res.ciiu.csv',
'views/l10n_co_res_partner.xml',
'views/auth_signup_inherit.xml',
'views/ciiu.xml',
'views/website.xml',
'data/ciiu.csv',
'data/l10n_states_co_data.xml',
'data/l10n_cities_co_data.xml',
'security/ir.model.access.csv'
],
'installable': True,
'application': True,
'auto_install': False,
}

# ./odoo-bin --stop-after-init -c /etc/odoo_12-server.conf -d plastinorte -u l10n_co_res_partner
# sudo /etc//init.d/odoo_12-server restart
96 changes: 0 additions & 96 deletions controller/main.py

This file was deleted.

10 changes: 1 addition & 9 deletions controller/__init__.py → controllers/__init__.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
# -*- coding: utf-8 -*-
###############################################################################
# #
# #
# Part of Odoo. See LICENSE file for full copyright and licensing details. #
# #
# #
# #
# Co-Authors Odoo LoCo #
# Localización funcional de Odoo para Colombia #
# #
# Copyright (C) 2016 Dominic Krimmer #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU Affero General Public License as published by #
Expand All @@ -24,5 +17,4 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
###############################################################################

from . import main
from . import controller
6 changes: 3 additions & 3 deletions controller/controller.py → controllers/controller.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

class controller(http.Controller):

@http.route('/l10n_co_res_partner/get_partner_state_city', methods=['POST'], type='json', auth="public", website=True)
@http.route('/l10n_co_res_partner/get_partner_state_city/', methods=['POST'], type='json', auth="public", website=True)
def get_partner_state_city(self, **kw):
_response = {}
partner_id = kw.get('partner_id')
Expand All @@ -32,7 +32,7 @@ def get_partner_state_city(self, **kw):
_response['xcity_id_'] = partner_city
return _response

@http.route('/l10n_co_res_partner/get_state_city', methods=['POST'], type='json', auth="public", website=True)
@http.route('/l10n_co_res_partner/get_state_city/', methods=['POST'], type='json', auth="public", website=True)
def get_state_city(self, **kw):
_response = {'state_cities':None}
state_id_ = kw.get('state_id')
Expand All @@ -41,4 +41,4 @@ def get_state_city(self, **kw):
request.cr.execute(query)
res_country_state_city = request.cr.dictfetchall()
_response['state_cities'] = res_country_state_city
return _response
return _response
Loading

0 comments on commit 645a1b3

Please sign in to comment.