Giter VIP home page Giter VIP logo

odoo_addons's Introduction

Smile addons for Odoo

This repository contains a collection of Odoo modules.

Requirements

  • Odoo 17.0

How to documentate your module

Requirements

You need to install package python-docutils:

apt install python3-docutils

Write documentation

At the root of your module, define a file README.md.

As soon as README.md is finished, run the following command at the root of the module:

rst2html README.rst static/description/index.html
sed -i 's/static\/description\///g' static/description/index.html

To update index.html of all modules, run the following command at the root of the repository:

for module in $(echo smile_*)
do
    if [ -f "$module"/README.rst ]
    then
        rst2html "$module"/README.rst "$module"/static/description/index.html
        sed -i 's/static\/description\///g' "$module"/static/description/index.html
    fi
done

odoo_addons's People

Contributors

isabellerichard avatar madecsmile avatar

Stargazers

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

Watchers

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

odoo_addons's Issues

smile_check_list: can't create Tasks (11.0)

Hi, I just installed smile_check_list and try to configure one.
When I try to add a task, the fields "Apply on" and "Complete if" are in readonly mode so I can't modify them even I selected a model.
And when I save, I got an error:

out

Error:
Odoo Server Error

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 650, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 310, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 692, in dispatch
    result = self._call_function(**self.params)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 342, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 335, in checked_call
    result = self.endpoint(*a, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 936, in __call__
    return self.method(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 515, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 934, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 926, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 689, in call_kw
    return call_kw_multi(method, model, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 680, in call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/home/benoit/Bureau/acft_modules/smile_checklist/models/checklist.py", line 225, in write
    do_not_compute_progress_rates=True)).write(vals)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 3089, in write
    self._write(old_vals)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 3227, in _write
    field.write(self.with_context(rel_context), vals[name])
  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 2260, in write
    comodel.create(act[2])
  File "/home/benoit/Bureau/acft_modules/smile_checklist/models/checklist_task.py", line 29, in create
    task._manage_task_instances()
  File "/home/benoit/Bureau/acft_modules/smile_checklist/models/checklist_task.py", line 71, in _manage_task_instances
    checklist._update_models()
  File "<decorator-gen-130>", line 2, in _update_models
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 369, in loop
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 369, in <listcomp>
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/home/benoit/Bureau/acft_modules/smile_checklist/models/checklist.py", line 273, in _update_models
    Field.create(vals)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_model.py", line 648, in create
    self.pool.init_models(self._cr, models, dict(self._context, update_custom_fields=True))
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 314, in init_models
    models[0].recompute()
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 4898, in recompute
    fs = self.env[field.model_name]._field_computed[field]
KeyError: mail.template.model

[automated action rule] on create_or_update not work !

Hello,
For module Automated Action Rules, when choice "create_or_update" or "create" in When to Run field, action automated are not call whereas i choice "update" it work
I have not error message, log are clean, module are install correctly

have you an idea ?

[smile_redis_session_store] Odoo 10 configuration failure

I have installed the plugin (no errors thrown during the installation). These are the lines appended to the odoo config as per the readme:

enable_redis = True
redis_host = somehost.87ghsl.0001.euc1.cache.amazonaws.com
redis_port = 6379

Resulting behaviour - website cannot load. Nothing is observed in the log.
Can you please advise where to debug further?

(not an issue of AWS, everything is configured correctly on that end)

Dependency to docker

Hello,

I would be interested to use this repo, mainly for the module_record module, but smile_ci make docker as a mandatory dependency.

Could you update the code to make it optional?

Traceback (most recent call last):
  File "/home/jriera/projects/odoo/prototype/git/odoo/openerp/service/server.py", line 906, in preload_registries
    registry = RegistryManager.new(dbname, update_module=update_module)
  File "/home/jriera/projects/odoo/prototype/git/odoo/openerp/modules/registry.py", line 341, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/jriera/projects/odoo/prototype/git/odoo/openerp/modules/loading.py", line 329, in load_modules
    modobj.button_upgrade(cr, SUPERUSER_ID, ids)
  File "/home/jriera/projects/odoo/prototype/git/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/jriera/projects/odoo/prototype/git/odoo/openerp/addons/base/module/module.py", line 542, in button_upgrade
    self.update_list(cr, uid)
  File "/home/jriera/projects/odoo/prototype/git/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/jriera/projects/odoo/prototype/git/odoo/openerp/addons/base/module/module.py", line 654, in update_list
    handler.load_addons()
  File "/home/jriera/projects/odoo/prototype/git/odoo/openerp/http.py", line 1242, in load_addons
    m = __import__('openerp.addons.' + module)
  File "/home/jriera/projects/odoo/prototype/git/odoo/openerp/modules/module.py", line 77, in load_module
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "/home/jriera/projects/odoo/prototype/git/smile/smile_ci/__init__.py", line 22, in <module>
    import models
  File "/home/jriera/projects/odoo/prototype/git/smile/smile_ci/models/__init__.py", line 22, in <module>
    import scm
  File "/home/jriera/projects/odoo/prototype/git/smile/smile_ci/models/scm.py", line 27, in <module>
    from docker import Client
ImportError: No module named docker

Best,
Jordi

[BUG] smile_upgrade

Odoo version : 9.0 (Official docker image)

When I add a csv file; it gives the error :


Exception: Module loading base failed: file /v9/qms_upgrade/nik/res.partner.csv could not be processed:
 Line 1 : environments

So I add for both csv and xml file the instruction :

with api.Environment.manage():
    ...

It solves the error for csv but it gives new error for the XML :

  File "/usr/lib/python2.7/dist-packages/openerp/service/server.py", line 893, in preload_registries
    registry = RegistryManager.new(dbname, update_module=update_module)
  File "/v9/qms/smile_upgrade/models/registry.py", line 59, in new
    upgrade_manager.post_load()
  File "/v9/qms/smile_upgrade/models/upgrade.py", line 168, in post_load
    upgrade.load_files(cr, 'post-load')
  File "/v9/qms/smile_upgrade/models/upgrade.py", line 258, in load_files
    raise e
ParseError: "'str' object does not support item assignment" while parsing /v9/qms/qms_progres/workflow/progres_workflow.xml:5, near
<record id="wkf_fp" model="workflow">
            <field name="name">qms.fiche.progres.basic</field>
            <field name="osv">qms.fiche.progres</field>
            <field name="on_create">True</field>
        </record>

[web_search_timedelta] (11.0) invalid input syntax for type date: "2W"

Odoo Server Error Traceback (most recent call last): File "/home/hui/odoo-dev/odoo11/odoo11/odoo/http.py", line 651, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/home/hui/odoo-dev/odoo11/odoo11/odoo/http.py", line 310, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/home/hui/odoo-dev/odoo11/odoo11/odoo/tools/pycompat.py", line 87, in reraise raise value File "/home/hui/odoo-dev/odoo11/odoo11/odoo/http.py", line 693, in dispatch result = self._call_function(**self.params) File "/home/hui/odoo-dev/odoo11/odoo11/odoo/http.py", line 342, in _call_function return checked_call(self.db, *args, **kwargs) File "/home/hui/odoo-dev/odoo11/odoo11/odoo/service/model.py", line 97, in wrapper return f(dbname, *args, **kwargs) File "/home/hui/odoo-dev/odoo11/odoo11/odoo/http.py", line 335, in checked_call result = self.endpoint(*a, **kw) File "/home/hui/odoo-dev/odoo11/odoo11/odoo/http.py", line 937, in __call__ return self.method(*args, **kw) File "/home/hui/odoo-dev/odoo11/odoo11/odoo/http.py", line 515, in response_wrap response = f(*args, **kw) File "/home/hui/odoo-dev/odoo11/odoo11/addons/web/controllers/main.py", line 876, in search_read return self.do_search_read(model, fields, offset, limit, domain, sort) File "/home/hui/odoo-dev/odoo11/odoo11/addons/web/controllers/main.py", line 898, in do_search_read offset=offset or 0, limit=limit or False, order=sort or False) File "/home/hui/odoo-dev/odoo11/odoo11/odoo/models.py", line 4244, in search_read records = self.search(domain or [], offset=offset, limit=limit, order=order) File "/home/hui/odoo-dev/odoo11/odoo11/odoo/models.py", line 1481, in search res = self._search(args, offset=offset, limit=limit, order=order, count=count) File "/home/hui/odoo-dev/odoo11/odoo11/odoo/models.py", line 3813, in _search self._cr.execute(query_str, where_clause_params) File "/home/hui/odoo-dev/odoo11/odoo11/odoo/sql_db.py", line 155, in wrapper return f(self, *args, **kwargs) File "/home/hui/odoo-dev/odoo11/odoo11/odoo/sql_db.py", line 232, in execute res = self._obj.execute(query, params) psycopg2.DataError: invalid input syntax for type date: "2W" LINE 1: ... true) AND ("product_template"."date_active" >= '2W')) ORD... ^

when I selected a date field using the filter within the last 2 week,this error occurred

Smile_redis via unix socket

Is it possible to use smile-redis via unix socket. Redis can be configured to use sockets, but how I can tell odoo to use socket instead of tcp-ip?

Can't install performance analyzer in Odoo 10

when i try to install the module the following error appears:

return super(JsonRequest, self)._handle_exception(exception) File "/media/sf_OdooProjekt/odoo-core/odoo/http.py", line 677, in dispatch result = self._call_function(**self.params) File "/media/sf_OdooProjekt/odoo-core/odoo/http.py", line 333, in _call_function return checked_call(self.db, *args, **kwargs) File "/media/sf_OdooProjekt/odoo-core/odoo/service/model.py", line 101, in wrapper return f(dbname, *args, **kwargs) File "/media/sf_OdooProjekt/odoo-core/odoo/http.py", line 326, in checked_call result = self.endpoint(*a, **kw) File "/odoo/custom/addons/smile_perf_analyzer/models/http.py", line 23, in __call__ res = profile(native_call)(self, *args, **kwargs) File "/odoo/custom/addons/smile_perf_analyzer/tools/decorators.py", line 21, in wrapper return func(*args, **kwargs) File "/media/sf_OdooProjekt/odoo-core/odoo/http.py", line 935, in __call__ return self.method(*args, **kw) File "/media/sf_OdooProjekt/odoo-core/odoo/http.py", line 506, in response_wrap response = f(*args, **kw) File "/odoo/odoo-server/addons/web/controllers/main.py", line 889, in call_button action = self._call_kw(model, method, args, {}) File "/odoo/odoo-server/addons/web/controllers/main.py", line 877, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/media/sf_OdooProjekt/odoo-core/odoo/api.py", line 681, in call_kw return call_kw_multi(method, model, args, kwargs) File "/media/sf_OdooProjekt/odoo-core/odoo/api.py", line 672, in call_kw_multi result = method(recs, *args, **kwargs) File "/media/sf_OdooProjekt/odoo-core/odoo/addons/base/module/module.py", line 410, in button_immediate_install return self._button_immediate_function(type(self).button_install) File "/media/sf_OdooProjekt/odoo-core/odoo/addons/base/module/module.py", line 484, in _button_immediate_function modules.registry.Registry.new(self._cr.dbname, update_module=True) File "/media/sf_OdooProjekt/odoo-core/odoo/modules/registry.py", line 82, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/media/sf_OdooProjekt/odoo-core/odoo/modules/loading.py", line 339, in load_modules loaded_modules, update_module) File "/media/sf_OdooProjekt/odoo-core/odoo/modules/loading.py", line 237, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/media/sf_OdooProjekt/odoo-core/odoo/modules/loading.py", line 136, in load_module_graph registry.init_models(cr, model_names, {'module': package.name}) File "/media/sf_OdooProjekt/odoo-core/odoo/modules/registry.py", line 313, in init_models model._auto_init() File "/odoo/custom/addons/bi_view_editor/models/models.py", line 25, in _auto_init super(Base, self)._auto_init() File "/media/sf_OdooProjekt/odoo-core/odoo/models.py", line 2343, in _auto_init cr.execute('SELECT 1 FROM "%s" LIMIT 1' % self._table) File "/odoo/custom/addons/smile_perf_analyzer/tools/decorators.py", line 39, in wrapper return func(self, query, params, log_exceptions) File "/media/sf_OdooProjekt/odoo-core/odoo/sql_db.py", line 154, in wrapper return f(self, *args, **kwargs) File "/media/sf_OdooProjekt/odoo-core/odoo/sql_db.py", line 231, in execute res = self._obj.execute(query, params) ProgrammingError: FEHLER: Relation »ir_logging_perf_log« existiert nicht ZEILE 1: SELECT 1 FROM "ir_logging_perf_log" LIMIT 1

File o directory non esistente: 'dot': 'dot'

Thanks for your job.
But I'm trying model graph (Odoo v.12) and I got always this error:
Error:
Odoo Server Error

Traceback (most recent call last):
File "/home/odoo/.local/lib/python3.6/site-packages/pydot.py", line 1878, in create
stderr=subprocess.PIPE, stdout=subprocess.PIPE)
File "/usr/lib/python3.6/subprocess.py", line 709, in init
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] File o directory non esistente: 'dot': 'dot'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/odoo/odoo-dev12/odoo/odoo/http.py", line 654, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/odoo-dev12/odoo/odoo/http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/odoo/odoo-dev12/odoo/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/home/odoo/odoo-dev12/odoo/odoo/http.py", line 696, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/odoo-dev12/odoo/odoo/http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/odoo-dev12/odoo/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/odoo-dev12/odoo/odoo/http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/odoo-dev12/odoo/odoo/http.py", line 939, in call
return self.method(*args, **kw)
File "/home/odoo/odoo-dev12/odoo/odoo/http.py", line 517, in response_wrap
response = f(*args, **kw)
File "/home/odoo/odoo-dev12/odoo/addons/web/controllers/main.py", line 966, in call_button
action = self._call_kw(model, method, args, {})
File "/home/odoo/odoo-dev12/odoo/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/odoo-dev12/odoo/odoo/api.py", line 749, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "/home/odoo/odoo-dev12/odoo/odoo/api.py", line 736, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/odoo/odoo-dev12/vendor-addons/odoo_addons/smile_model_graph/wizard/ir_model_graph_wizard.py", line 26, in button_generate_file
None)
File "/home/odoo/odoo-dev12/vendor-addons/odoo_addons/smile_model_graph/models/ir_model.py", line 93, in get_graph
return IrModel.print_graph(graph, path)
File "/home/odoo/odoo-dev12/vendor-addons/odoo_addons/smile_model_graph/models/ir_model.py", line 43, in print_graph
return base64.encodestring(graph.create_png())
File "/home/odoo/.local/lib/python3.6/site-packages/pydot.py", line 1681, in
self.create(format=f, prog=prog))
File "/home/odoo/.local/lib/python3.6/site-packages/pydot.py", line 1883, in create
prog=prog))
Exception: "dot" not found in path.

Smile_base_partner (12 ce) error on view

The smile_base_partner module (odoo 12 ce) is installed without any problem.
However, when i want to use the "search more" option from some drop-down list I get the following error:
"TypeError: can't convert undefined to object"
If i uninstall the module the error disappears.
Please if you could check it out.
Thank you!

EDIT
The error appears when the smile_base_partner and smile_account_asset modules are installed. If both are installed (regardless of the order) it gives the above error.
If only one is installed (any) does not appears the problem.

overloading

module: smile_audit
version: 12.0

Steps to reproduce

  • ...

Current behavior

Expected behavior

This module does not let me create new rules out connection lost is overloading what can be the problem

[12.0EE] smile_commitment_forecast don't work

Hello,
I installed the modules smile_commitment_forecast and smile_commitment_base, but whem i look for the changes that forecast is supoused to do, it doesn't appear in the column in the Budget line or the field (checkbox) in account_analytic_line view.
Thanks for the help

Speed increase?

Hello

What kind of speed increase/improvement should we notice?
I have installed your app, but I don't notice much.
We have 5 internal users + 3500 clients that buy from shop, but I don't notice any difference whit app enabled.

smile_mail makes Mail template unusable

module: smile_mail
version: 10.0

smile_mail makes Mail template unusable

Steps to reproduce

  • ...
    I try to load an email template created earlier in the section
    Configuration -----> Technical features ----> Template but nothing happens
    Current behavior

Expected behavior

[smile_checklist] Visibility by action

  • Visibility by action is KO => Test: apply checklist to res.partner but only in Purchase/Suppliers and check that checklist does not appear in other actions

smile_account_asset column pg_proc-poisagg

Hi,
I can't install smile_account_asset on odoo12 CE, i get a message that the column pg_proc.proisagg does not exist.
Reviewing the documentation i find that since postgresql 11 pg_proc.proisagg (boolean) was replaced with prokind
In account_asset_depreciation_line.py (line 22) it says:
SELECT * FROM pg_proc WHERE proname = 'last' AND proisagg;""")

I modified the line by:

SELECT * FROM pg_proc WHERE proname ? 'last' AND prokind ' 'a';""")

And now I can install.
Just for knowledge in case you consider making modifications.
Greetings and thanks

Cannot uninstall Smile Base module

Hi,

After installing Smile Base. I want to uninstall it and I get:

Traceback (most recent call last):
  File "/opt/odoo/openerp/http.py", line 536, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/openerp/http.py", line 573, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/openerp/http.py", line 309, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/openerp/http.py", line 306, in checked_call
    return self.endpoint(*a, **kw)
  File "/opt/odoo/openerp/http.py", line 802, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/openerp/http.py", line 402, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/addons/web/controllers/main.py", line 941, in call_button
    action = self._call_kw(model, method, args, {})
  File "/opt/odoo/addons/web/controllers/main.py", line 929, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/opt/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/openerp/addons/base/module/wizard/base_module_upgrade.py", line 105, in upgrade_module
    openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
  File "/opt/odoo/.local/share/Odoo/addons/8.0/smile_upgrade/models/registry.py", line 93, in new
    registry = native_new(db_name, force_demo, status, update_module)
  File "/opt/odoo/openerp/modules/registry.py", line 370, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/opt/odoo/openerp/modules/loading.py", line 423, in load_modules
    registry['ir.module.module'].module_uninstall(cr, SUPERUSER_ID, modules_to_remove.values())
  File "/opt/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/openerp/addons/base/module/module.py", line 462, in module_uninstall
    ir_model_data._module_data_uninstall(cr, uid, modules_to_remove, context)
  File "/opt/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/openerp/addons/base/ir/ir_model.py", line 1224, in _module_data_uninstall
    ir_model_relation._module_data_uninstall(cr, uid, relation_ids, context)
  File "/opt/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/openerp/addons/base/ir/ir_model.py", line 648, in _module_data_uninstall
    self.unlink(cr, uid, ids, context)
  File "/opt/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/openerp/api.py", line 363, in old_api
    result = method(recs, *args, **kwargs)
  File "/opt/odoo/.local/share/Odoo/addons/8.0/smile_base/models/models.py", line 84, in new_unlink
    return native_unlink(self)
  File "/opt/odoo/openerp/api.py", line 239, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/openerp/api.py", line 546, in new_api
    result = method(self._model, cr, uid, self.ids, *args, **kwargs)
  File "/opt/odoo/openerp/models.py", line 3632, in unlink
    context=context)
  File "/opt/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/openerp/models.py", line 1642, in search
    return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
  File "/opt/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/openerp/models.py", line 4640, in _search
    order_by = self._generate_order_by(order, query)
  File "/opt/odoo/openerp/models.py", line 4606, in _generate_order_by
    raise ValueError( _("Sorting field %s not found on model %s") %( order_field, self._name))
ValueError: Sorting field sequence not found on model ir.values

Error load AccountAssetAsset Odoo 11 CE

I got following error message
AttributeError: 'tuple' object has no attribute 'split' when the system tried to load smile account asset module.
File "....\smile_account_asset\models_init_.py", line 6, in
from . import account_asset_asset
File "....\smile_account_asset\models\account_asset_asset.py", line 48, in
class AccountAssetAsset(models.Model):
File "...\smile_account_asset\models\account_asset_asset.py", line 325, in AccountAssetAsset
@api.depends(('category_id', [('state', 'not in', ('close', 'cancel'))]))
File "....\odoo\api.py", line 231, in depends
elif any('id' in arg.split('.') for arg in args):
File "....\odoo\api.py", line 231, in
elif any('id' in arg.split('.') for arg in args):
AttributeError: 'tuple' object has no attribute 'split'

Kindly need your help to solve this

smile_audit raise error when installing on Odoo 13 version

Hello,

can't install on the new Odoo 13 version. Can you please fix it?

Error:
Odoo Server Error

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 619, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 309, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 14, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 664, in dispatch
    result = self._call_function(**self.params)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 345, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 93, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 338, in checked_call
    result = self.endpoint(*a, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 909, in __call__
    return self.method(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 510, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1242, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1230, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 410, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 397, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "<decorator-gen-58>", line 2, in button_immediate_install
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 72, in check_and_log
    return method(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 463, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 573, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 420, in load_modules
    loaded_modules, update_module, models_to_check)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 312, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 195, in load_module_graph
    registry.init_models(cr, model_names, {'module': package.name})
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 316, in init_models
    model.init()
  File "/usr/lib/python3/dist-packages/odoo/tools/misc.py", line 846, in deco
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_config_parameter.py", line 50, in init
    params = self.sudo().search([('key', '=', key)])
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 1556, in search
    res = self._search(args, offset=offset, limit=limit, order=order, count=count)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 4280, in _search
    self._flush_search(args, order=order)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 4258, in _flush_search
    self.env[model_name].flush(field_names)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 5233, in flush
    self.recompute(fnames, records=records)
TypeError: recompute() got an unexpected keyword argument 'records'

Create partner_ids in calendar from event

'partner_ids': [(6, 0, [])],

Hi @isabellerichard
In the model event.py from Event Event Calendar, I found that calendar.event create object from event.event, but keep partners_ids empty :'partner_ids': [(6, 0,[])],
However the partner_id in event module is created by event.registration. So you should create partner_ids on calendar.event from event.registration not event.event.
Thank you

Best regards

Odoo.sh deployment failed V12

Can't deploy the app in Odoo.sh V12,
Here's the bug report

WARNING | server | Two fields (model, model_id) of audit.log() have the same label: Model.
-- | -- | --

[9.0] Can't disable a group

Module : smile_access_control

Version : 9.0

The module smile_access_control adds an active field on the model res.groups.
When I untick the active box on a group, then save, I have the following error :

Invalid view definition

Error details:
Field `sel_groups_1_2_3` does not exist

Error context:
View `res.users.groups`
[view_id: 153, xml_id: base.user_groups_view, model: res.users, parent_id: 150]

Informations inside server logs :

2016-09-02 16:56:42,150 42 INFO test openerp.addons.base.ir.ir_ui_view: Field `sel_groups_1_2_3` does not exist

Error context:
View `res.users.groups`
[view_id: 153, xml_id: base.user_groups_view, model: res.users, parent_id: 150]

redis session store

Been trying to get Redis Sessions store to work but I cant figure out what is wrong. It seems like the redis module is not being enabled. I have installed pip3 install redis.
config:

enable_redis = True
redis_host = odoo-redis
redis_pass = odoo

netstat:

tcp        0      0 0.0.0.0:8069    0.0.0.0:*       LISTEN      -                   
tcp        0      0 ---:52840       ---:5432        ESTABLISHED -                   
tcp        0      0 ---:52812       ---:5432        ESTABLISHED -                   
tcp        0      0 ---:52816       ---:5432        ESTABLISHED - 
redis-cli -h odoo-redis -a odoo ping
PONG

I am using docker containers and odoo-12 Enterprise.

[smile_followers] Error when using method decorator 'add_followers'

With last version of smile_followers and Odoo 8.0, calling the method decorator add_followers fails with this error:

2015-06-16 13:02:14,683 22744 CRITICAL fienhage_1805 openerp.service.server: Failed to initialize database `fienhage_1805`.
Traceback (most recent call last):
 File "/opt/openerp/fienhage/odoo/openerp/service/server.py", line 924, in preload_registries
   registry = RegistryManager.new(dbname, update_module=update_module)
 File "/opt/openerp/fienhage/odoo/openerp/modules/registry.py", line 370, in new
   openerp.modules.load_modules(registry._db, force_demo, status, update_module)
 File "/opt/openerp/fienhage/odoo/openerp/modules/loading.py", line 351, in load_modules
   force, status, report, loaded_modules, update_module)
 File "/opt/openerp/fienhage/odoo/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/openerp/fienhage/odoo/openerp/modules/loading.py", line 143, in load_module_graph
   load_openerp_module(package.name)
 File "/opt/openerp/fienhage/odoo/openerp/modules/module.py", line 315, in load_openerp_module
   __import__('openerp.addons.' + module_name)
 File "/opt/openerp/fienhage/odoo/openerp/modules/module.py", line 80, in load_module
   mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
 File "/opt/openerp/fienhage/fienhage/custom-addons/fienhage_base/__init__.py", line 26, in <module>
   import invoice2
 File "/opt/openerp/fienhage/fienhage/custom-addons/fienhage_base/invoice2.py", line 6, in <module>
   class StockMove(models.Model):
 File "/opt/openerp/fienhage/fienhage/custom-addons/fienhage_base/invoice2.py", line 11, in StockMove
   @api.model
 File "/opt/openerp/fienhage/extra_addons/smile_followers/tools/mail_followers.py", line 79, in decorator
   cls = create_or_write.im_class
AttributeError: 'function' object has no attribute 'im_class'

smile_account_asset missing field [12 CE]

Hi.....
When try to install the module smile_account_asset, gives me an error, and tells me (log file) that I should add the field "parent_path = fields. Char(index=True)"
I add to account_asset_asset.py and it allows me to install without problem.
Is that correct?
Thank you!

smile_web_auto_refresh javascript error with studio enabled

I get an odoo dialog on any page reload with the following when I install the studio add on and smile_web_auto_refresh is configured for crm.lead create/write on the pipeline kanban view.

Uncaught TypeError: Cannot read property 'then' of undefined
http://localhost:8069/web/content/451-aca3411/web_studio.assets.js:100
Traceback:
TypeError: Cannot read property 'then' of undefined
    at Class.show_application (http://localhost:8069/web/content/451-aca3411/web_studio.assets.js:100:318)
    at Class.show_application (http://localhost:8069/web/content/425-f7520f6/web.assets_common.js:3541:371)
    at Array.<anonymous> (http://localhost:8069/web/content/569-5e9934c/web.assets_backend.js:556:2810)
    at Array.<anonymous> (http://localhost:8069/web/content/425-f7520f6/web.assets_common.js:802:681)
    at fire (http://localhost:8069/web/content/425-f7520f6/web.assets_common.js:796:299)
    at Object.fireWith [as resolveWith] (http://localhost:8069/web/content/425-f7520f6/web.assets_common.js:801:198)
    at Array.deferred.<computed> (http://localhost:8069/web/content/425-f7520f6/web.assets_common.js:803:56)
    at fire (http://localhost:8069/web/content/425-f7520f6/web.assets_common.js:796:299)
    at Object.add [as done] (http://localhost:8069/web/content/425-f7520f6/web.assets_common.js:797:467)
    at Object.<anonymous> (http://localhost:8069/web/content/425-f7520f6/web.assets_common.js:802:772)

The actual js file affected is: /web_studio/static/src/js/web_client.js
and the function with the error is here:

show_application: function() {
            var self = this;
            return this._super.apply(this, arguments).then(function() {
                var qs = $.deparam.querystring();
                self.studioMode = _.contains(['main', 'app_creator'], qs.studio) ? qs.studio : false;
                if (self.studioMode) {
                    self._updateContext();
                    return self._openStudio();
                }
            });
        },

The first return statement is where this._super.apply(this, arguments) is undefined.

[10.0] smile_docker not working

Hello,

I got this error when i try to install the module smile_docker, thank you

Traceback (most recent call last):
  File "/opt/odoo/odoo/http.py", line 641, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo/http.py", line 683, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/odoo/http.py", line 333, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo/service/model.py", line 101, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo/http.py", line 326, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/leon/PycharmProjects/odoo/odoo_addons-10.0/smile_perf_analyzer/models/http.py", line 23, in __call__
    res = profile(native_call)(self, *args, **kwargs)
  File "/home/leon/PycharmProjects/odoo/odoo_addons-10.0/smile_perf_analyzer/tools/decorators.py", line 21, in wrapper
    return func(*args, **kwargs)
  File "/opt/odoo/odoo/http.py", line 941, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo/http.py", line 506, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/addons/web/controllers/main.py", line 894, in call_button
    action = self._call_kw(model, method, args, {})
  File "/opt/odoo/addons/web/controllers/main.py", line 882, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/odoo/odoo/api.py", line 689, in call_kw
    return call_kw_multi(method, model, args, kwargs)
  File "/home/leon/PycharmProjects/odoo/odoo_addons-10.0/smile_data_integration/models/models.py", line 133, in call_kw_multi
    return native_call_kw_multi(method, self, args, kwargs)
  File "/opt/odoo/odoo/api.py", line 680, in call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/opt/odoo/odoo/addons/base/module/module.py", line 528, in button_immediate_upgrade
    return self._button_immediate_function(type(self).button_upgrade)
  File "/opt/odoo/odoo/addons/base/module/module.py", line 485, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "/home/leon/PycharmProjects/odoo/odoo_addons-10.0/smile_upgrade/models/registry.py", line 44, in new
    return native_new(db_name, force_demo, update_module=update_module)
  File "/opt/odoo/odoo/modules/registry.py", line 83, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/opt/odoo/odoo/modules/loading.py", line 335, in load_modules
    force, status, report, loaded_modules, update_module)
  File "/opt/odoo/odoo/modules/loading.py", line 237, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/opt/odoo/odoo/modules/loading.py", line 156, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='data')
  File "/opt/odoo/odoo/modules/loading.py", line 95, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "/opt/odoo/odoo/tools/convert.py", line 845, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/opt/odoo/odoo/tools/convert.py", line 915, in convert_xml_import
    obj.parse(doc.getroot(), mode=mode)
  File "/opt/odoo/odoo/tools/convert.py", line 796, in parse
    self.parse(rec, mode)
  File "/opt/odoo/odoo/tools/convert.py", line 799, in parse
    self._tags[rec.tag](rec, de, mode=mode)
  File "/opt/odoo/odoo/tools/convert.py", line 707, in _tag_record
    id = self.env(context=rec_context)['ir.model.data']._update(rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode)
  File "/opt/odoo/odoo/addons/base/ir/ir_model.py", line 1229, in _update
    record = record.create(values)
  File "/home/leon/PycharmProjects/odoo/odoo_addons-10.0/smile_docker/models/docker_registry.py", line 103, in create
    registry.start_container()
  File "/home/leon/PycharmProjects/odoo/odoo_addons-10.0/smile_docker/models/docker_container.py", line 81, in start_container
    if not container.is_alive(all=True):
  File "/home/leon/PycharmProjects/odoo/odoo_addons-10.0/smile_docker/models/docker_container.py", line 39, in is_alive
    all=all, filters={'name': self.docker_container}))
  File "/home/leon/PycharmProjects/odoo/odoo_addons-10.0/smile_docker/models/docker_host.py", line 170, in get_containers
    containers.extend(docker_host.client.containers(**kwargs))
  File "/usr/local/lib/python2.7/dist-packages/docker/api/container.py", line 210, in containers
    res = self._result(self._get(u, params=params), True)
  File "/usr/local/lib/python2.7/dist-packages/docker/utils/decorators.py", line 46, in inner
    return f(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/docker/api/client.py", line 230, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 498, in send
    raise ConnectionError(err, request=request)
ParseError: "Connection aborted.
13
Permission denied" while parsing /home/leon/PycharmProjects/odoo/odoo_addons-10.0/smile_docker/data/docker_registry.xml:5, near
<record id="defaut_docker_registry" model="docker.registry">
            <field name="name">Registry</field>
            <field name="configfile" type="base64" file="smile_docker/data/registry_config.yml"/>
            <field name="docker_host_id" ref="defaut_docker_host"/>
        </record>

python-redis and redis setex function variable order mismatch in function..

module: smile_redis_session_store
version: 8.0

Steps to reproduce

  • This was a brand new install of Odoo 11 ver 20181129 in Docker with PG10.5 and Redis:latest.

Current behavior

   File "/usr/local/lib/python3.5/dist-packages/redis/connection.py", line 638, in read_response
       raise response
redis.exceptions.ResponseError: value is not an integer or out of range

Expected behavior
Session data is stored in Redis rather than on disk in Odoo datadir directory (by default in ~/.local/share/Odoo/data).

Solution
To explicitly set the names of the variables in the function call.

in smile_redis_session_store/redis_session_store.py on lines 51 and 67
set the function call to self.redis.setex(name=key, value=data, time=self.expire)

Logout option seems missing

module: smile_website_login_as
version: 12.0

The option to unset the "user logged in as" value seems to be missing. Now, every time I access the website, it opens the user which i logged in and there is no way to change that back. Please suggest

[8.0] Ignored tests in smile_ci

Text field ignored_tests of model scm.repository.branch is wrong parsed:

Traceback (most recent call last):
File "/usr/src/odoo/server/openerp/service/wsgi_server.py", line 75, in xmlrpc_return
result = openerp.http.dispatch_rpc(service, method, params)
File "/usr/src/odoo/server/openerp/http.py", line 100, in dispatch_rpc
result = dispatch(method, params)
File "/usr/src/odoo/ci-addons/smile_test/service/test.py", line 249, in new_dispatch
return run_tests(*params)
File "/usr/src/odoo/ci-addons/smile_test/service/test.py", line 230, in run_tests
ignore = eval(tools.config.get('ignored_tests') or '{}')
File "<string>", line 1
{'my_module': 'all',
^
SyntaxError: unexpected EOF while parsing

"'ir.cron' object has no attribute '_setup_base'"

Version 8.0
Error on installation

ParseError: "'ir.cron' object has no attribute '_setup_base'" while parsing /home/yoges/workspace/OpenERP80/module-apps/smile_checklist/demo/checklist_demo.xml:5, near

Cron checklist





Printing error sales & delivery order using smile_report module

Hi
I am facing printing error when using smile_report module in sales order and delivery order

Uncaught SyntaxError: Unexpected token T
--------------------------------------------------------------------------------------------------------------------
http://localhost:8069/web?db=quick_test#id=12&view_type=form&model=sale.order&menu_id=298&action=362:1

but when print invoice the report prints fine
well you please check and try to solve this as soon as possible ... I think this module are wonderful
Thanks and wish you Happy New Year
Regards

smile_checklist not work

hi dear
I installed your checklist model and encountered the following error. please help me to fix
؛Style error

The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made.

Could not get content for /smile_checklist/static/src/css/checklist.css defined in bundle 'web.assets_backend'.

Error when uninstalling Access Control

Hi,

I install Access Control module for a test. I then uninstalled it and i get this error:

Traceback (most recent call last):
  File "/opt/odoo/openerp/http.py", line 536, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/openerp/http.py", line 573, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/openerp/http.py", line 309, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/openerp/http.py", line 306, in checked_call
    return self.endpoint(*a, **kw)
  File "/opt/odoo/openerp/http.py", line 802, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/openerp/http.py", line 402, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/addons/web/controllers/main.py", line 877, in search_read
    return self.do_search_read(model, fields, offset, limit, domain, sort)
  File "/opt/odoo/addons/web/controllers/main.py", line 898, in do_search_read
    request.context)
  File "/opt/odoo/openerp/http.py", line 907, in proxy
    result = meth(cr, request.uid, *args, **kw)
  File "/opt/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/openerp/models.py", line 5129, in search_read
    record_ids = self.search(cr, uid, domain or [], offset=offset, limit=limit, order=order, context=context)
  File "/opt/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/openerp/models.py", line 1642, in search
    return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
  File "/opt/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/openerp/models.py", line 4638, in _search
    query = self._where_calc(cr, user, args, context=context)
  File "/opt/odoo/.local/share/Odoo/addons/8.0/smile_web_search_timedelta/models.py", line 57, in _where_calc
    return native_where_calc(self, cr, uid, domain, active_test, context)
  File "/opt/odoo/.local/share/Odoo/addons/8.0/smile_web_search_range/models.py", line 37, in _where_calc
    return native_where_calc(self, cr, uid, new_domain, active_test, context)
  File "/opt/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/openerp/models.py", line 4461, in _where_calc
    e = expression.expression(cr, user, domain, self, context)
  File "/opt/odoo/openerp/osv/expression.py", line 646, in __init__
    self.parse(cr, uid, context=context)
  File "/opt/odoo/openerp/osv/expression.py", line 812, in parse
    raise ValueError("Invalid field %r in leaf %r" % (left, str(leaf)))
ValueError: Invalid field 'user_profile' in leaf "<osv.ExtendedLeaf: ('user_profile', '=', False) on res_users (ctx: )>"

Smile audit not working

I created two rules like this:

 id | create_uid | log_unlink | values_id |        create_date         |  name   | log_write | write_uid | state |         write_date         | active | model_id | log_create | action_id 
----+------------+------------+-----------+----------------------------+---------+-----------+-----------+-------+----------------------------+--------+----------+------------+-----------
  2 |          1 | t          |        11 | 2016-07-28 08:54:45.579812 | Userlog | t         |         1 | done  | 2016-07-28 08:54:51.632319 | t      |       91 | t          |        82
  1 |          1 | t          |           | 2016-07-28 08:46:02.418244 | User    | t         |         1 | done  | 2016-07-28 08:54:56.290982 | t      |       92 | t          |          

but I don't get any logs.

Is it possible that I totally missunderstood what this module is about?

Wrong Odoo server path

Hi,

Please help me with the server path, in branch configuration. I tried (server, /usr/src/odoo, ....) but nothing seems to work.

Module : smile_ci

Administrator - il y a 3 minutes 

test master - Build 10 - Failed

Build creation failed

Error message:

Création de l'image build:10 en échec

The command '/bin/sh -c [ -f "server/odoo-bin" ]' returned a non-zero code: 1

Cannot create moves for different companies.

module: Multi-company - Invoicing
version: 10.0

Steps to reproduce

  • ...SO in company 1 makes a PO in company 1 for company 2, this is a SO in company 2. When we deliver this SO and make a invoice we get the error:
    Cannot create moves for different companies.

Current behavior
We get the error. It is with an admin account which has the rights to both companies.

Expected behavior
That it would make an invoice as said in the description:
Instead of attaching the invoice natively to the connected user's company, it will be registered by the invoicing company carried by the record.

[smile_module_record] (12.0) Invalid field 'res_field' in leaf

Error:
Odoo Server Error

Traceback (most recent call last):
  File "/ERP/odoo/http.py", line 654, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/ERP/odoo/http.py", line 312, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/ERP/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/ERP/odoo/http.py", line 696, in dispatch
    result = self._call_function(**self.params)
  File "/ERP/odoo/http.py", line 344, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/ERP/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/ERP/odoo/http.py", line 337, in checked_call
    result = self.endpoint(*a, **kw)
  File "/ERP/odoo/http.py", line 939, in __call__
    return self.method(*args, **kw)
  File "/ERP/odoo/http.py", line 517, in response_wrap
    response = f(*args, **kw)
  File "/ERP/addons/web/controllers/main.py", line 966, in call_button
    action = self._call_kw(model, method, args, {})
  File "/ERP/addons/web/controllers/main.py", line 954, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/ERP/odoo/api.py", line 749, in call_kw
    return _call_kw_multi(method, model, args, kwargs)
  File "/ERP/odoo/api.py", line 736, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/ERP/my-modules/smile_module_record/wizard/base_module_export.py", line 276, in button_create_module
    self.create_module()
  File "<decorator-gen-99>", line 2, in create_module
  File "/ERP/odoo/api.py", line 372, in loop
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/ERP/odoo/api.py", line 372, in <listcomp>
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/ERP/my-modules/smile_module_record/wizard/base_module_export.py", line 230, in create_module
    datas = self._get_data_filecontent()
  File "/ERP/my-modules/smile_module_record/wizard/base_module_export.py", line 183, in _get_data_filecontent
    for model, rows in self._export_data_by_model():
  File "/ERP/my-modules/smile_module_record/wizard/base_module_export.py", line 109, in _export_data_by_model
    recs = res_obj.search(res_obj._log_access and domain or [])
  File "/ERP/odoo/models.py", line 1561, in search
    res = self._search(args, offset=offset, limit=limit, order=order, count=count)
  File "/ERP/odoo/models.py", line 4078, in _search
    query = self._where_calc(args)
  File "/ERP/odoo/models.py", line 3869, in _where_calc
    e = expression.expression(domain, self)
  File "/ERP/odoo/osv/expression.py", line 672, in __init__
    self.parse()
  File "/ERP/odoo/osv/expression.py", line 853, in parse
    raise ValueError("Invalid field %r in leaf %r" % (left, str(leaf)))
ValueError: Invalid field 'res_field' in leaf "<osv.ExtendedLeaf: ('res_field', '=', False) on ir_config_parameter (ctx: )>"

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.