GithubHelp home page GithubHelp logo

l10n_co_res_partner's Introduction

Localización Colombia: Terceros

main_screenshot.png

Local Rules

In Colombia there are some local rules that have to apply when creating a new contact. This module is designed from the legal requirements of the tax authority in Colombia.

  • It is quite common that persons have up to 4 names. All of these are important to separate.
  • The CIIU Code of a company shows the Industrial Classification of a company. This information will be important for tax calculation and statistics
  • In Colombia there are many types of identification that have to be very clear in almost every transaction.
  • NIT is the identification number for almost every company. The verification code will be calculated automatically.

What you get

  • Redesign of the contact form due to the above mentioned local rules that have to apply in Colombia:
  • Additional fields: first name, second name, last name, second last name
  • Additional fields: Type of Person, Document Type, Document Number, Tributate regime, CIIU Code
  • Handling all kind of identification types that are relevant in Colombia
  • Intelligent form: Fields will be checked for correctness and completeness
  • Identification Number added into Tree View
  • Identification Number added into KanBan View
  • Visual Identifier for incomplete contacts in Kanban- and Tree view
  • Auto-Complete of NIT: Type in the NIT and the Verification Digit will be calculated automatically
  • Description of economic activities (CIIU Code), including the entire list to maintain it
  • Maintain the CIIU list under this new menu point: Accounting/Configuration/Accounting/CIIU
  • Contacts can be found by Identification Number (e.g. NIT)
  • Added a complete list of all cities and departments in Colombia
  • Country, Department and Municipality Dependency Logic in order to avoid confusion of locations with the same name
  • Identification / Document-Type combination will be checked as it should be unique
  • All changes available in english (choose language: en_GB)

How to install

Setup a running environment of Odoo on your machine (local or remote). Here are two links on how to install odoo locally on Ubuntu and Mac: Ubuntu: https://goo.gl/mgEbUR Mac: http://goo.gl/hXBqfG

Once you have a running installation, you can install this module on several ways:

  1. Go to your Addons folder of your Odoo Installation and type "git clone ".

  2. You can download the ZIP file and extract all files. Have in mind that the folder you will add to your addons path is called "l10n_co_res_partner".

  3. Install Docker on your computer and follow this instructions: https://goo.gl/5p8Q7Y

Restart your server and go the the applications tab. Change to developer mode and update the application list. Then you can search for the module like "colombia" or "Terceros". Install it. Have fun.

License

Like many other modules for odoo, this project runs under the AGPL-3 license (http://www.gnu.org/licenses/agpl-3.0.html). Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

Feedback

We want to improve constantly our software, therefore we love feedback. Feel free to comment at any time our code. If you think something is missing please don't hesitate to drop a message.

Contact

This is how you can reach the contributors:

Dominic Krimmer: [email protected] Hector Ivan Valencia Muñoz: [email protected] test

l10n_co_res_partner's People

Contributors

dkrimmer84 avatar xyklex avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

l10n_co_res_partner's Issues

AttributeError: type object 'ir.model.fields' has no attribute 'formbuilder_whitelist'

Hi @dkrimmer84 I am using the 12.0 branch for l10n_co_res_partner module on Odoo CE 12 version, and trying to install it, return this error:

Error:
Odoo Server Error

Traceback (most recent call last):
  File "/home/macagua/projects/odoo12x/odoo/tools/convert.py", line 758, in parse
    self._tags[rec.tag](rec, de, mode=mode)
  File "/home/macagua/projects/odoo12x/odoo/tools/convert.py", line 343, in _tag_function
    _eval_xml(self, rec, env)
  File "/home/macagua/projects/odoo12x/odoo/tools/convert.py", line 194, in _eval_xml
    return odoo.api.call_kw(model, method, args, {})
  File "/home/macagua/projects/odoo12x/odoo/api.py", line 752, in call_kw
    method = getattr(type(model), name)
AttributeError: type object 'ir.model.fields' has no attribute 'formbuilder_whitelist'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/macagua/projects/odoo12x/odoo/http.py", line 656, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/macagua/projects/odoo12x/odoo/http.py", line 314, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/home/macagua/projects/odoo12x/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/home/macagua/projects/odoo12x/odoo/http.py", line 698, in dispatch
    result = self._call_function(**self.params)
  File "/home/macagua/projects/odoo12x/odoo/http.py", line 346, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/macagua/projects/odoo12x/odoo/service/model.py", line 98, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/macagua/projects/odoo12x/odoo/http.py", line 339, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/macagua/projects/odoo12x/odoo/http.py", line 941, in __call__
    return self.method(*args, **kw)
  File "/home/macagua/projects/odoo12x/odoo/http.py", line 519, in response_wrap
    response = f(*args, **kw)
  File "/home/macagua/projects/odoo12x/addons/web/controllers/main.py", line 966, in call_button
    action = self._call_kw(model, method, args, {})
  File "/home/macagua/projects/odoo12x/addons/web/controllers/main.py", line 954, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/macagua/projects/odoo12x/odoo/api.py", line 759, in call_kw
    return _call_kw_multi(method, model, args, kwargs)
  File "/home/macagua/projects/odoo12x/odoo/api.py", line 746, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "<decorator-gen-61>", line 2, in button_immediate_install
  File "/home/macagua/projects/odoo12x/odoo/addons/base/models/ir_module.py", line 74, in check_and_log
    return method(self, *args, **kwargs)
  File "/home/macagua/projects/odoo12x/odoo/addons/base/models/ir_module.py", line 445, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
  File "/home/macagua/projects/odoo12x/odoo/addons/base/models/ir_module.py", line 561, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "/home/macagua/projects/odoo12x/odoo/modules/registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/macagua/projects/odoo12x/odoo/modules/loading.py", line 421, in load_modules
    loaded_modules, update_module, models_to_check)
  File "/home/macagua/projects/odoo12x/odoo/modules/loading.py", line 313, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
  File "/home/macagua/projects/odoo12x/odoo/modules/loading.py", line 222, in load_module_graph
    load_data(cr, idref, mode, kind='data', package=package, report=report)
  File "/home/macagua/projects/odoo12x/odoo/modules/loading.py", line 68, in load_data
    tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
  File "/home/macagua/projects/odoo12x/odoo/tools/convert.py", line 802, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/home/macagua/projects/odoo12x/odoo/tools/convert.py", line 865, in convert_xml_import
    obj.parse(doc.getroot(), mode=mode)
  File "/home/macagua/projects/odoo12x/odoo/tools/convert.py", line 764, in parse
    exc_info[2]
  File "/home/macagua/projects/odoo12x/odoo/tools/pycompat.py", line 86, in reraise
    raise value.with_traceback(tb)
  File "/home/macagua/projects/odoo12x/odoo/tools/convert.py", line 758, in parse
    self._tags[rec.tag](rec, de, mode=mode)
  File "/home/macagua/projects/odoo12x/odoo/tools/convert.py", line 343, in _tag_function
    _eval_xml(self, rec, env)
  File "/home/macagua/projects/odoo12x/odoo/tools/convert.py", line 194, in _eval_xml
    return odoo.api.call_kw(model, method, args, {})
  File "/home/macagua/projects/odoo12x/odoo/api.py", line 752, in call_kw
    method = getattr(type(model), name)
odoo.tools.convert.ParseError: "type object 'ir.model.fields' has no attribute 'formbuilder_whitelist'" while parsing /home/macagua/projects/odoo12x/extra-addons/l10n_co_res_partner/views/l10n_co_res_partner.xml:218, near
<function model="ir.model.fields" name="formbuilder_whitelist">
            <value>res.partner</value>
            <value eval="[                 'name', 'phone', 'email',                 'city', 'zip', 'street', 'street2', 'state_id', 'country_id',                 'vat', 'company_name', 'district_id','mobile','partner_id',                 'x_name1','x_name2','x_lastname1','x_lastname2',                  'xidentification','xcity', 'doctype', 'personType',                  'verificationDigit', 'pos_name', 'companyBrandName', 'is_company'             ]"/>
        </function>

Existing Contacts: Fields are shown although it's defined as "invisible" in XML File.

BUG: After installation of the module: Existing contacts shows that are defined as "invisible" in the XML File.

Here is the problem:

When I install my module on an fresh odoo instance with EXISTING contacts, I observe that when I want to edit this existing contact, the variable "ident" is shown although the contact is a person (not a company).

Interesting: When I change the contact on the frontend to "company" and change it back to "person" (without saving the form) I see that the effect is correct.

The problem is that when I have my module fresh installed and edit an existing contact, the variable does not behave as it should (being invisible on first edit of existing parter). After the first edit everything works out, but for a user that wants to install the module on his instance it could be confusing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.