Brazil mailing list archives

brazil@odoo-community.org

erro na instalação do modulo de localização HR Payroll

by
Rogerio P Falcone
- 11/06/2018 14:47:52
Amigos bom dia,

Podem me ajudar e orientar na instalação? pode ser que por falta de um documetno da ordem de instalação eu tenha ocasionado o erro.

Fiz a instalação de todos os modulos para instalar a localização brasileira do HR, ao tentar instalar o modulo Brazilian Localization HR Payroll ocorreu o error conforme abaixo.

Segue em anexo o log, o erro gerado na instalação, bem como a tela que mostra antes da instalação os modulos de pré requisitos instalados.

2018-06-11 14:02:49,276 16670 INFO POC openerp.modules.loading: loading l10n_br_hr_payroll/demo/l10n_br_hr_payroll_rubricas.xml
2018-06-11 14:02:49,284 16670 ERROR POC openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
  File "/opt/srv/openerp/http.py", line 546, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/srv/openerp/http.py", line 583, in dispatch
    result = self._call_function(**self.params)
  File "/opt/srv/openerp/http.py", line 319, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/srv/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/srv/openerp/http.py", line 316, in checked_call
    return self.endpoint(*a, **kw)
  File "/opt/srv/openerp/http.py", line 812, in __call__
    return self.method(*args, **kw)
  File "/opt/srv/openerp/http.py", line 412, in response_wrap
    response = f(*args, **kw)
  File "/opt/srv/openerp/addons/web/controllers/main.py", line 948, in call_button
    action = self._call_kw(model, method, args, {})
  File "/opt/srv/openerp/addons/web/controllers/main.py", line 936, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/opt/srv/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/srv/openerp/addons/base/module/module.py", line 447, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
  File "/opt/srv/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/srv/openerp/addons/base/module/module.py", line 495, in _button_immediate_function
    registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
  File "/opt/srv/openerp/modules/registry.py", line 370, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/opt/srv/openerp/modules/loading.py", line 355, in load_modules
    loaded_modules, update_module)
  File "/opt/srv/openerp/modules/loading.py", line 255, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/opt/srv/openerp/modules/loading.py", line 179, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='demo')
  File "/opt/srv/openerp/modules/loading.py", line 118, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "/opt/srv/openerp/tools/convert.py", line 897, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/opt/srv/openerp/tools/convert.py", line 983, in convert_xml_import
    obj.parse(doc.getroot(), mode=mode)
  File "/opt/srv/openerp/tools/convert.py", line 849, in parse
    self._tags[rec.tag](self.cr, rec, n, mode=mode)
  File "/opt/srv/openerp/tools/convert.py", line 756, in _tag_record
    f_val = int(f_val)
ParseError: "invalid literal for int() with base 10: '300.0'" while parsing /opt/srv/local/hr-brazil/l10n_br_hr_payroll/demo/l10n_br_hr_payroll_rubricas.xml:16, near
<record id="hr_salary_rule_BRUTO" model="hr.salary.rule">
            <field name="code">BRUTO</field>
            <field name="name">Bruto</field>
            <field name="active">True</field>
            <field name="sequence">300.0</field>
            <field name="category_id" ref="hr_payroll.BRUTO"/>
            <field name="condition_select">none</field>
            <field name="condition_python">
# Available variables:
#----------------------
# payslip: object containing the payslips
# employee: hr.employee object
# contract: hr.contract object
# rules: object containing the rules code (previously computed)
# categories: object containing the computed salary rule categories (sum of amount of all rules belonging to that category).
# worked_days: object containing the computed worked days
# inputs: object containing the computed inputs

# Note: returned value have to be set in the variable 'result'

result = rules.NET   &gt;   categories.NET * 0.10</field>
            <field name="amount_python_compute">result = categories.PROVENTO</field>
            <field name="custom_amount_python_compute"/>
            <field name="amount_select">code</field>
            <field name="custom_amount_select">code</field>
            <field name="compoe_base_INSS"/>
            <field name="compoe_base_IR"/>
            <field name="compoe_base_FGTS"/>
            <field name="amount_fix"/>
            <field name="custom_amount_fix"/>
            <field name="amount_percentage"/>
            <field name="amount_percentage_base"/>
            <field name="custom_amount_percentage_base"/>
            <field name="custom_amount_percentage"/>
            <field name="appears_on_payslip">True</field>
            <field name="condition_range">contract.wage</field>
            <field name="condition_range_min"/>
            <field name="condition_range_max"/>
            <field name="note"/>
            <field name="calculo_nao_padrao"/>
            <field name="quantity">1.0</field>
            <field name="custom_quantity"/>
            <field name="tipo_media"/>
            <field name="parent_rule_id" ref=""/>
            <field name="company_id" ref="base.main_company"/>
            <field name="register_id" ref=""/>
        </record>
2018-06-11 14:02:49,287 16670 INFO POC werkzeug: 127.0.0.1 - - [11/Jun/2018 14:02:49] "POST /web/dataset/call_button HTTP/1.1" 200 -
2018-06-11 14:03:24,154 16670 INFO POC openerp.modules.loading: loading 1 modules...
2018-06-11 14:03:24,165 16670 INFO POC openerp.modules.loading: 1 modules loaded in 0.01s, 0 queries
2018-06-11 14:03:24,233 16670 INFO POC openerp.modules.loading: loading 73 modules...
2018-06-11 14:03:24,288 16670 INFO POC openerp.modules.loading: 73 modules loaded in 0.06s, 0 queries
2018-06-11 14:03:25,439 16670 INFO POC openerp.modules.loading: Modules loaded.
2018-06-11 14:03:25,447 16670 INFO POC werkzeug: 127.0.0.1 - - [11/Jun/2018 14:03:25] "POST /longpolling/poll HTTP/1.1" 200 -
2018-06-11 14:03:25,460 16670 INFO POC openerp.addons.base.ir.ir_http: Generating routing map
2018-06-11 14:04:15,562 16670 INFO POC werkzeug: 127.0.0.1 - - [11/Jun/2018 14:04:15] "POST /longpolling/poll HTTP/1.1" 200 -
2018-06-11 14:05:05,638 16670 INFO POC werkzeug: 127.0.0.1 - - [11/Jun/2018 14:05:05] "POST /longpolling/poll HTTP/1.1" 200 -
2018-06-11 14:05:55,689 16670 INFO POC werkzeug: 127.0.0.1 - - [11/Jun/2018 14:05:55] "POST /longpolling/poll HTTP/1.1" 200 -


Obrigado pela preteza e ajuda.

Rogério