Git Product home page Git Product logo

misc-addons's People

Contributors

actions-user avatar elgohr avatar enigma228322 avatar fananimi avatar i18n-bot avatar itpp-bot avatar trojikman avatar yelizariev 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

misc-addons's Issues

Translation

Hello Yelizariev, I modified a .pot file to include the Spanish language and in the calendar view the strings "lead / opportunity" and "phonecall" are not translated.

Error on inserting HTML Tags in the signature of res_users_signature

When creating the signature, all is ok, but if I select at least 1 user, and push save or update signatures, i get this exception:

Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/odoo-server/openerp/http.py", line 526, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo-server/openerp/http.py", line 563, in dispatch
result = self._call_function(*_self.params)
File "/opt/odoo/odoo-server/openerp/http.py", line 303, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/service/model.py", line 113, in wrapper
return f(dbname, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/http.py", line 300, in checked_call
return self.endpoint(_a, *_kw)
File "/opt/odoo/odoo-server/openerp/http.py", line 792, in call
return self.method(_args, *_kw)
File "/opt/odoo/odoo-server/openerp/http.py", line 396, in response_wrap
response = f(_args, *_kw)
File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 949, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 941, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 241, in wrapper
return old_api(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 393, in old_api
result = new_api(recs, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 397, in new_api
result = [method(rec, _args, *_kwargs) for rec in self]
File "/opt/odoo/odoo-server/addons/res_users_signature/res_users_signature_models.py", line 78, in write
self.action_update_signature()
File "/opt/odoo/odoo-server/openerp/api.py", line 239, in wrapper
return new_api(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 397, in new_api
result = [method(rec, _args, *_kwargs) for rec in self]
File "/opt/odoo/odoo-server/addons/res_users_signature/res_users_signature_models.py", line 83, in action_update_signature
self.user_ids.render_signature_id()
File "/opt/odoo/odoo-server/openerp/api.py", line 239, in wrapper
return new_api(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 397, in new_api
result = [method(rec, _args, *_kwargs) for rec in self]
File "/opt/odoo/odoo-server/addons/res_users_signature/res_users_signature_models.py", line 37, in render_signature_id
mako = mako_template_env.from_string(tools.ustr(self.signature_id.template))
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 841, in from_string
return cls.from_code(self, self.compile(source), globals, None)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 554, in compile
self.handle_exception(exc_info, source_hint=source)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "", line 1, in template
TemplateSyntaxError: unexpected '<'

web_debranding [8] when installed causing error can not login fro new created database

I have installed web_debranding module (8.0), then this causing "can not login error" for new database created by superuser (master admin), just after the database is created created (so the administrator page never shown)

when i refresh the login page, (the database seletor page), the new created database is listed there, but when i select it to login to this database the error login (unable to login) is happen, the login field to enter user and password is never shown.

Please help how to fix,

Regards,
Bun Hin

(v9) web_debranding: replase icon browser notifications

hello Ivan

in web_debranding
I would like him to add functionality to replace the logo Odoo in browser notifications

replacing the image
addons/mail/static/img/odoo_o.png

You can replace the image as it currently does favicon

Thank you

Can not be deinstalled

web_debranding in its current version can't be uninstalled

openerp/modules/loading.py", line 384, in load_modules
getattr(py_module, uninstall_hook)(cr, registry)
AttributeError: 'module' object has no attribute 'uninstall_hook'

workarround: after switching the current version with the previous version the debrand module can be deinstalled

[10.0] booking_calendars/models.py Resource module ImportError

I'm trying to use booking_calendar module on odoo 10.0

After correcting syntax errors line 684 in models.py, ImportError occur with resource module.
Resource module is present as well as resource/resource.py

File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/usr/lib/python2.7/dist-packages/odoo/service/server.py", line 246, in app
    return self.app(e, s)
  File "/usr/lib/python2.7/dist-packages/odoo/service/wsgi_server.py", line 184, in application
    return application_unproxied(environ, start_response)
  File "/usr/lib/python2.7/dist-packages/odoo/service/wsgi_server.py", line 170, in application_unproxied
    result = handler(environ, start_response)
  File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 1305, in __call__
    self.load_addons()
  File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 1326, in load_addons
    m = __import__('odoo.addons.' + module)
  File "/usr/lib/python2.7/dist-packages/odoo/modules/module.py", line 81, in load_module
    execfile(modfile, new_mod.__dict__)
  File "/opt/odoo/addons/booking_calendar/__init__.py", line 2, in <module>
    from . import models
  File "/opt/odoo/addons/booking_calendar/models.py", line 13, in <module>
    from openerp.addons.resource.resource import seconds
  File "/usr/lib/python2.7/dist-packages/odoo/modules/module.py", line 109, in load_module
    mod = importlib.import_module(canonical)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named resource

access_base module installation error

Hello @yelizariev ! Thanks for this collection of script, they could help me a lot since I am planning to migrate from sugarCRM to odoo.

My problem is that I cannot install the module sugarcrm_import, because the dependency access_base is failing to install. I am using the debian packages of odoo 8.00 and am getting the following error:
Odoo Server Error
[... snipped first part of the stacktrace ...]
File "/usr/lib/python2.7/dist-packages/openerp/addons/access_base/models.py", line 22, in update_user_groups_view
custom_group_id = self.pool['ir.model.data'].get_object_reference(cr, uid, 'access_base', 'module_category_custom')[1]
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 237, in wrapper
return old_api(self, _args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_model.py", line 966, in get_object_reference
return self.xmlid_lookup(cr, uid, "%s.%s" % (module, xml_id))[1:3]
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 237, in wrapper
return old_api(self, _args, *_kwargs)
File "", line 2, in xmlid_lookup
File "/usr/lib/python2.7/dist-packages/openerp/tools/cache.py", line 71, in lookup
value = d[key] = self.method(_args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_model.py", line 924, in xmlid_lookup
raise ValueError('External ID not found in the system: %s' % (xmlid))
ValueError: External ID not found in the system: access_base.module_category_custom

And the module remains in the state "pending installation".

I manually installed all the other dependencies and identified this addon to be the culprit. I installed odoo only yesterday, hence I have no idea how to dig deeper into this issue, I would appreciate any help.

Kind regards,
Daniele

product_without_taxes - price calculation

Hello,
The module is great! It saved me. One thing I saw and I think it will be better to be fixed.

I had a problem with the calculated price without taxes. In your code you have the following line:
line.price_unit * (1-(line.discount or 0.0)/100.0),
In it you calculate the price with the discount. Although in a report (proposal, invoice, etc.) "discount" column is positioned after the "unit price" column although the discount is already calculated. If you remove the discount from the calculation, everything will be logically ordered in a line:
description, qty, uom, unit price with taxes, unit price without taxes, taxes, discount, summary with discount.

Now with your module the line looks like:
description, qty, uom, unit price with taxes, unit price with discount and without taxes, taxes, discount, summary with discount;
which is a little confusing.

I hope I explained it well enough.

The lines that in my opinion should be changed are line 14, line 33 in models.py file.

I have made the change in my local installation and everything is just working fine and is in my opinion more logical looking at the columns' order.

Anyway, great work done!

mail_sent causes read access error on delete

Hi Ivan,

First thank you for publishing your modules, you really have some very nice stuff here.

There is an issue with your module mail_sent.

With that module installed, i get a read access error when as a non admin user, trying to unlink a record from any object inheriting from mail_tread. Uninstalling the module fixes the issue.

For some reason, odoo.addons.mail.mail_message.mail_message#check_access_rule is called multiple times, but the last call an "Access Denied" error is raised.

I havn't got around to figuring out why this is, we just have disabled the module for now. I wanted to share my findings just in case you face a simular issue.

2015-11-24 18:12:13,968 3674 DEBUG vagrant openerp.addons.mail.mail_message: check_access_rule called with params:
2015-11-24 18:12:13,969 3674 DEBUG vagrant openerp.addons.mail.mail_message: uid: 24, ids: [2544237], operation: unlink
2015-11-24 18:12:13,980 3674 DEBUG vagrant openerp.addons.mail.mail_message: check_access_rule called with params:
2015-11-24 18:12:13,980 3674 DEBUG vagrant openerp.addons.mail.mail_message: uid: 24, ids: [2544237], operation: read
2015-11-24 18:12:14,014 3674 DEBUG vagrant openerp.addons.mail.mail_message: check_access_rule called with params:
2015-11-24 18:12:14,014 3674 DEBUG vagrant openerp.addons.mail.mail_message: uid: 24, ids: [2544237], operation: unlink
2015-11-24 18:12:14,213 3674 DEBUG vagrant openerp.addons.mail.mail_message: check_access_rule called with params:
2015-11-24 18:12:14,214 3674 DEBUG vagrant openerp.addons.mail.mail_message: uid: 24, ids: [2544237], operation: read
2015-11-24 18:12:14,220 3674 ERROR vagrant openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
  File "/opt/odoo/8.0/odoo/openerp/http.py", line 537, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/8.0/odoo/openerp/http.py", line 574, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/8.0/odoo/openerp/http.py", line 310, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/8.0/odoo/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/8.0/odoo/openerp/http.py", line 307, in checked_call
    return self.endpoint(*a, **kw)
  File "/opt/odoo/8.0/odoo/openerp/http.py", line 803, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/8.0/odoo/openerp/http.py", line 403, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/8.0/odoo/addons/web/controllers/main.py", line 944, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/opt/odoo/8.0/odoo/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/odoo/8.0/odoo/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/8.0/odoo/addons/mail/mail_thread.py", line 453, in unlink
    msg_obj.unlink(cr, uid, msg_ids, context=context)
  File "/opt/odoo/8.0/odoo/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/8.0/odoo/addons/mail/mail_message.py", line 842, in unlink
    return super(mail_message, self).unlink(cr, uid, ids, context=context)
  File "/opt/odoo/8.0/odoo/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/8.0/odoo/openerp/models.py", line 3673, in unlink
    recs.recompute()
  File "/opt/odoo/8.0/odoo/openerp/api.py", line 248, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/8.0/odoo/openerp/models.py", line 5753, in recompute
    name: rec[name] for name in names
  File "/opt/odoo/8.0/odoo/openerp/models.py", line 5753, in <dictcomp>
    name: rec[name] for name in names
  File "/opt/odoo/8.0/odoo/openerp/models.py", line 5637, in __getitem__
    return self._fields[key].__get__(self, type(self))
  File "/opt/odoo/8.0/odoo/openerp/fields.py", line 819, in __get__
    self.determine_value(record)
  File "/opt/odoo/8.0/odoo/openerp/fields.py", line 897, in determine_value
    self.compute_value(recs)
  File "/opt/odoo/8.0/odoo/openerp/fields.py", line 877, in compute_value
    self._compute_value(records)
  File "/opt/odoo/8.0/odoo/openerp/fields.py", line 869, in _compute_value
    self.compute(records)
  File "/opt/odoo/8.0/odoo/openerp/api.py", line 248, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/8.0/odoo/openerp/api.py", line 416, in new_api
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/opt/odoo/8.0/addons-enabled/mail_sent/models.py", line 9, in _get_sent
    self.sent = len(self.notified_partner_ids) > 1 or len(self.notified_partner_ids)==1 and self.notified_partner_ids[0].id != self.author_id.id
  File "/opt/odoo/8.0/odoo/openerp/fields.py", line 819, in __get__
    self.determine_value(record)
  File "/opt/odoo/8.0/odoo/openerp/fields.py", line 912, in determine_value
    record._prefetch_field(self)
  File "/opt/odoo/8.0/odoo/openerp/api.py", line 248, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/8.0/odoo/openerp/models.py", line 3241, in _prefetch_field
    result = records.read(list(fnames), load='_classic_write')
  File "/opt/odoo/8.0/odoo/openerp/api.py", line 248, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/8.0/odoo/openerp/api.py", line 565, in new_api
    result = method(self._model, cr, uid, self.ids, *args, **kwargs)
  File "/opt/odoo/8.0/odoo/addons/mail/mail_message.py", line 827, in read
    self.check_access_rule(cr, uid, ids, 'read', context=context)
  File "/opt/odoo/8.0/odoo/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/8.0/odoo/addons/website_mail/models/mail_message.py", line 89, in check_access_rule
    return super(MailMessage, self).check_access_rule(cr, uid, ids=ids, operation=operation, context=context)
  File "/opt/odoo/8.0/odoo/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/8.0/odoo/addons/portal/mail_message.py", line 63, in check_access_rule
    return super(mail_message, self).check_access_rule(cr, uid, ids=ids, operation=operation, context=context)
  File "/opt/odoo/8.0/odoo/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/8.0/odoo/addons/mail/mail_message.py", line 770, in check_access_rule
    (self._description, operation))
except_orm: (u'Toegang geweigerd', u'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: Message, Operation: read)')

Kind Regards,
Jos

web-debranding missing all Enterprise Links shown in Version 9

When clicking on those Features under Configuration Settings of Modules which are marked as Enterprise Features than they still link to Odoo and advertise the Enterprise edition. How to get rid of it?

i.e. under Projects:
Forecasts, planning and Gantt charts Enterprise
Timesheet app for Chrome/Android/iOS Enterprise

and also in other modules

Thanks

reminder: can't convert some leads to opportunities

Hi,

with activated reminder plugins I have trouble converting some of my leads (not all) to opportunities. Error log shows the following error:

2015-09-01 14:59:50,876 29383 ERROR database openerp.sql_db: Programming error: column "res_partner_id" is of type integer but expression is of type boolean
LINE 1: ...r_rel (calendar_event_id,res_partner_id) values (639, false)
^
HINT: You will need to rewrite or cast the expression.
, in query insert into calendar_event_res_partner_rel (calendar_event_id,res_partner_id) values (%s, %s)
2015-09-01 14:59:50,877 29383 ERROR database openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/opt/odoo/odoo-server/openerp/http.py", line 537, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo-server/openerp/http.py", line 574, in dispatch
result = self._call_function(*_self.params)
File "/opt/odoo/odoo-server/openerp/http.py", line 310, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/service/model.py", line 113, in wrapper
return f(dbname, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/http.py", line 307, in checked_call
return self.endpoint(_a, *_kw)
File "/opt/odoo/odoo-server/openerp/http.py", line 803, in call
return self.method(_args, *_kw)
File "/opt/odoo/odoo-server/openerp/http.py", line 403, in response_wrap
response = f(_args, *_kw)
File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 948, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo/odoo-server/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/odoo/odoo-server/openerp/api.py", line 241, in wrapper
return old_api(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/addons/crm/wizard/crm_lead_to_opportunity.py", line 161, in action_apply
self._convert_opportunity(cr, uid, ids, vals, context=context)
File "/opt/odoo/odoo-server/openerp/api.py", line 241, in wrapper
return old_api(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/addons/crm/wizard/crm_lead_to_opportunity.py", line 120, in _convert_opportunity
res = lead.convert_opportunity(cr, uid, [lead_id.id], partner_id, [], False, context=context)
File "/opt/odoo/odoo-server/openerp/api.py", line 241, in wrapper
return old_api(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/addons/crm/crm_lead.py", line 726, in convert_opportunity
self.write(cr, uid, [lead.id], vals, context=context)
File "/opt/odoo/odoo-server/openerp/api.py", line 241, in wrapper
return old_api(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 363, in old_api
result = method(recs, _args, *_kwargs)
File "/opt/odoo/odoo-server/addons/crm_lead_lost_reason/model/crm_lead.py", line 54, in write
result = super(CrmLead, self).write(vals)
File "/opt/odoo/odoo-server/openerp/api.py", line 239, in wrapper
return new_api(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 547, in new_api
result = method(self._model, cr, uid, self.ids, _args, *_kwargs)
File "/opt/odoo/odoo-server/addons/crm/crm_lead.py", line 953, in write
return super(crm_lead, self).write(cr, uid, ids, vals, context=context)
File "/opt/odoo/odoo-server/openerp/api.py", line 241, in wrapper
return old_api(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/addons/mail/mail_thread.py", line 432, in write
result = super(mail_thread, self).write(cr, uid, ids, values, context=context)
File "/opt/odoo/odoo-server/openerp/api.py", line 241, in wrapper
return old_api(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 394, in old_api
result = new_api(recs, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 398, in new_api
result = [method(rec, _args, *_kwargs) for rec in self]
File "/opt/odoo/odoo-server/addons/reminder_base/reminder_base_models.py", line 130, in write
self._update_reminder(vals)
File "/opt/odoo/odoo-server/openerp/api.py", line 239, in wrapper
return new_api(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 398, in new_api
result = [method(rec, _args, *_kwargs) for rec in self]
File "/opt/odoo/odoo-server/addons/reminder_base/reminder_base_models.py", line 55, in _update_reminder
self._do_update_reminder(update_date=self._reminder_date_field in vals)
File "/opt/odoo/odoo-server/openerp/api.py", line 239, in wrapper
return new_api(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 398, in new_api
result = [method(rec, _args, *_kwargs) for rec in self]
File "/opt/odoo/odoo-server/addons/reminder_base/reminder_base_models.py", line 107, in _do_update_reminder
event.write(vals)
File "/opt/odoo/odoo-server/openerp/api.py", line 239, in wrapper
return new_api(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 547, in new_api
result = method(self._model, cr, uid, self.ids, _args, *_kwargs)
File "/opt/odoo/odoo-server/addons/calendar/calendar.py", line 1613, in write
res = super(calendar_event, self).write(cr, uid, [int(event_id) for event_id in ids], values, context=context)
File "/opt/odoo/odoo-server/openerp/api.py", line 241, in wrapper
return old_api(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/addons/mail/mail_thread.py", line 432, in write
result = super(mail_thread, self).write(cr, uid, ids, values, context=context)
File "/opt/odoo/odoo-server/openerp/api.py", line 241, in wrapper
return old_api(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 363, in old_api
result = method(recs, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/models.py", line 3778, in write
self._write(old_vals)
File "/opt/odoo/odoo-server/openerp/api.py", line 239, in wrapper
return new_api(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 547, in new_api
result = method(self._model, cr, uid, self.ids, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/models.py", line 3921, in _write
result += self._columns[field].set(cr, self, id, field, vals[field], user, context=rel_context) or []
File "/opt/odoo/odoo-server/openerp/osv/fields.py", line 1052, in set
cr.execute('insert into '+rel+' ('+id1+','+id2+') values (%s, %s)', (id, act_nbr))
File "/opt/odoo/odoo-server/openerp/sql_db.py", line 158, in wrapper
return f(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/sql_db.py", line 234, in execute
res = self._obj.execute(query, params)
ProgrammingError: column "res_partner_id" is of type integer but expression is of type boolean
LINE 1: ...r_rel (calendar_event_id,res_partner_id) values (639, false)
^
HINT: You will need to rewrite or cast the expression.

Website debranding makes website title false

As can be seen in the screenshot below the website debranding module makes the webpage title false. Inputting a new title can not be saved. Problem did not exist prior to install module. No title appears in the html code of the website.

screenshot from 2017-01-04 05-54-39

Reminder used with the OCA Mass Edit

Hello!

I'm facing some problems. I want to add reminders to all my tasks in a project. So I setup a Mass Edit action from the OCA Mass Edit module.
But this doesn't work, it assigns a task to me (it should be for a different user) and the other one I edited along side this one just gets the name "TMP NAME"
Take a look here: https://cl.ly/2X3f302M1i22

Odoo 10 Community Edition

reminder error self._get_duration(values['start']

Hello i have install successful misc-addons but when i start to create reminder it show error in the crm like that plz help.

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/Software/http.py", line 638, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/Software/http.py", line 675, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python2.7/dist-packages/Software/http.py", line 331, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/Software/service/model.py", line 119, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/Software/http.py", line 324, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python2.7/dist-packages/Software/http.py", line 933, in call
return self.method(*args, **kw)
File "/usr/lib/python2.7/dist-packages/Software/http.py", line 504, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python2.7/dist-packages/Software/addons/web/controllers/main.py", line 862, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/usr/lib/python2.7/dist-packages/Software/addons/web/controllers/main.py", line 854, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python2.7/dist-packages/Software/api.py", line 681, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python2.7/dist-packages/Software/api.py", line 672, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/Software/addons/crm/models/crm_lead.py", line 315, in write
return super(Lead, self).write(vals)
File "/usr/lib/python2.7/dist-packages/Software/addons/mail/models/mail_thread.py", line 274, in write
result = super(MailThread, self).write(values)
File "", line 2, in write
File "/usr/lib/python2.7/dist-packages/Software/api.py", line 361, in loop
result = [method(rec, *args, **kwargs) for rec in self]
File "/home/Software/misc-addons/reminder_base/reminder_base_models.py", line 133, in write
vals = self._check_and_create_reminder_event(vals)
File "/home/Software/misc-addons/reminder_base/reminder_base_models.py", line 119, in _check_and_create_reminder_event
event = self._create_reminder_event()
File "/home/Software/misc-addons/reminder_base/reminder_base_models.py", line 37, in _create_reminder_event
}).create(vals)
File "/usr/lib/python2.7/dist-packages/Software/addons/crm/models/calendar.py", line 15, in create
event = super(CalendarEvent, self).create(vals)
File "/usr/lib/python2.7/dist-packages/Software/addons/calendar/models/calendar.py", line 1399, in create
values['duration'] = self._get_duration(values['start'], values['stop'])
KeyError: 'start'

booking_calendar

@veryberry
Нужно положить import в try block, т.к. иначе получаем ошибку если второй репозиторий не подключен к odoo, а человек вовсе не собирается испльзовать букинг, а подключил репозиторий addons-yelizariev для других целей. (То есть ошибка возникает даже если модуль не установлен)
https://github.com/yelizariev/addons-yelizariev/blob/8.0/booking_calendar/controllers/main.py#L4

Disappeared And Doesn't Show up after when i clicked on Install button

When i clicked on Install button it redirected me to official odoo login page and i closed the page and tried to install again but doesn't show up. what should i do? do we have to buy this module or do i miss something wrong? can you please help me out? i don't want to waste my time to remove those odoo branding stuff. Thank you very much for your great module. Keep up your great job.

[WISHLIST] Add requirements.txt

It should be great if you add requirements.txt with python dependencies. You have declared python dependencies in your modules but it's easier to install all packages using pip -r requirements.txt.

(v9) web_debranding: options lost

Hello Ivan
After installing web_debranding multicurrency options and analytical accounts they were lost

on the menu
Accounting / Configuration / Settings / Features

debranding

web_debranding affecting xml strings with ampersands?

In Odoo 9 when web_debranding is installed it seems to affect how the ampersand appears. An example of this is the customer tabs as highlighted below-

image

It also affects the headings for Configuration / Settings in Sales and Accounting and other places. I'm fairly sure that it is the web_debranding module causing the problem as un-installing it removes the problem.

[8.0] Impossible to send an email withtout body

If you are sending an email without a body (attachment only), which is normally possible, an error is triggered in res_users_signature/res_users_signature_models.py and the email is not sent.

The line match = pattern.search(body, pos) expects a string or a buffer in body, but receive 'False' which is the correct value.

Odoo Server 8.0:vscom:ERROR:openerp.addons.mail.mail_mail:failed sending mail.mail 33 Traceback (most recent call last)
File "/home/openerp/git_repositories/odoo/addons/mail/mail_mail.py", line 302, in send headers=headers)
File "/home/openerp/custom_addons/res_users_signature/res_users_signature_models.py", line 118, in build_email
match = pattern.search(body, pos) TypeError: expected string or buffer

product_image_filestore: when updating module it throws error.

Hello,

Great module, my DB dump size changed from 1.2 GB to 340MB.

After module install if we do a database update with
odoo.py -u all ...
following error happens

File "/opt/odoo/custom/addons/product_image_filestore/product_image_filestore_models.py", line 20, in _auto_init
cr.execute("ALTER TABLE product_template RENAME COLUMN image TO image_old")
File "/opt/odoo/odoo-server/openerp/sql_db.py", line 158, in wrapper
return f(self, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/sql_db.py", line 234, in execute
res = self._obj.execute(query, params)
ProgrammingError: column "image_old" of relation "product_template" already exists

(v10) error in views.xml while installation of project_kanban_customer

While istalling a module odoo say someting wrong with line 4 of project_kanban_customer/views.xml file.
Also line 13 of project_kanban_customer/openerp.py
is 'installable': False
При установке выскакивает ошибка со ссылкой на 4 строку файла project_kanban_customer/views.xml
Ещё заметил, что в файле project_kanban_customer/openerp.py настройка 'installable': False
`File "C:\Program Files (x86)\Odoo 10.0\server\odoo\models.py", line 1074, in _validate_fields
ParseError: "Error while validating constraint

\u042d\u043b\u0435\u043c\u0435\u043d\u0442 '' \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0432\u0438\u0434\u0435

\u041e\u0448\u0438\u0431\u043a\u0430 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430:
\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 project.project kanban
[view_id: 737, xml_id: \u041d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e, model: project.project, parent_id: 522]
None" while parsing file:///c:/Program%20Files%20(x86)/Odoo%2010.0/server/custom/project_kanban_customer/views.xml:4, near
record model="ir.ui.view" id="view_project_kanban"`


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

can't create opportunity

after installing module "reminder_crm_next_action" can't create opportunity. It gives Validate Error
Field(s) start_datetime, stop_datetime, start_date, stop_date failed against a constraint: Error ! End date cannot be set before start date.

not knowing which two fields are supposed to be start and end?

same case in module "reminder_phonecall" can't create phone calls.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

[]website_files] does block switching of image selection

Hi,

First thanks for the great module.

There is a issue with website_file. An all my instances installing the module does block switching of image selection.
When I click on the right side button "Next->" the cursor turns to a stop symbol and I can't turn to the next page of images.
image

When I deinstall the module everything is fine again.

cheers
Lucas

Enterprise Features still get listed

Enterprise Features still get listed in Configuration/Settings of:
Accounting
Sales
Point of Sales
Inventory
Project
Mass Mailing
Website Admin

Odoo Version 9 latest update from git today - 1 March 2016

Add Lead/Opportunity Name to PhoneCall Event

It would be great to include the Lead/Opportunity Name in Phonecall events:

Phonecall (Lead/Opp Name): Example

when Phonecall is not associated to a Lead/Opportunity stay with the current Name:

Phonecall: Example

What do you think?

Thanks!
Steve

How to make Reminders and Agenda for Tasks work for project deadlines?

Hi Ivan,
i've been trying to work with your coding and trying to make it work for project deadline but ive been running into some problems.

my models.py is now:

from openerp import models

class project(models.Model):
_name = 'project.project'
_inherit = ['project.project', 'reminder']

_reminder_date_field = 'date'
_reminder_attendees_fields = 'user_id'

and my views.xml is now:

project.project

BUT every time i try to select an end date it gives me an error:

File "/opt/odoo8/odoo/addons/reminder_base/reminder_base_models.py", line 93, in _do_update_reminder
field = self._columns[field_name]
KeyError: 'u'

---- could you please help me out? ----

Error on creating phonecall with reminder_base and reminder_phoncall module installed

Hi Ivan,

first of all, thanks for youre awesome modules!

I received following error when I click on Sales -> Logged Calls and want to add a phone call. This happens after installing the reminder_base and the reminder_phonecall module on a fresh database.

Traceback (most recent call last):
  File "/home/tertia/workspace/odoo8/openerp/http.py", line 530, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/tertia/workspace/odoo8/openerp/http.py", line 567, in dispatch
    result = self._call_function(**self.params)
  File "/home/tertia/workspace/odoo8/openerp/http.py", line 303, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/http.py", line 300, in checked_call
    return self.endpoint(*a, **kw)
  File "/home/tertia/workspace/odoo8/openerp/http.py", line 796, in __call__
    return self.method(*args, **kw)
  File "/home/tertia/workspace/odoo8/openerp/http.py", line 396, in response_wrap
    response = f(*args, **kw)
  File "/home/tertia/workspace/odoo8/openerp/addons/web/controllers/main.py", line 936, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/tertia/workspace/odoo8/openerp/addons/web/controllers/main.py", line 928, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/addons/mail/mail_thread.py", line 384, in create
    thread_id = super(mail_thread, self).create(cr, uid, values, context=context)
  File "/home/tertia/workspace/odoo8/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/api.py", line 336, in old_api
    result = method(recs, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/addons/reminder_base/reminder_base_models.py", line 120, in create
    vals = self._check_and_create_reminder_event(vals)
  File "/home/tertia/workspace/odoo8/openerp/api.py", line 239, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/addons/reminder_base/reminder_base_models.py", line 114, in _check_and_create_reminder_event
    event = self._create_reminder_event()
  File "/home/tertia/workspace/odoo8/openerp/api.py", line 239, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/addons/reminder_base/reminder_base_models.py", line 32, in _create_reminder_event
    event = self.env['calendar.event'].with_context(no_mail_to_attendees=True).create(vals)
  File "/home/tertia/workspace/odoo8/openerp/api.py", line 239, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/api.py", line 462, in new_api
    result = method(self._model, cr, uid, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/addons/crm/calendar_event.py", line 36, in create
    res = super(calendar_event, self).create(cr, uid, vals, context=context)
  File "/home/tertia/workspace/odoo8/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/addons/calendar/calendar.py", line 1646, in create
    res = super(calendar_event, self).create(cr, uid, vals, context=context)
  File "/home/tertia/workspace/odoo8/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/addons/mail/mail_thread.py", line 384, in create
    thread_id = super(mail_thread, self).create(cr, uid, values, context=context)
  File "/home/tertia/workspace/odoo8/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/api.py", line 336, in old_api
    result = method(recs, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/models.py", line 4059, in create
    record = self.browse(self._create(old_vals))
  File "/home/tertia/workspace/odoo8/openerp/api.py", line 239, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/api.py", line 462, in new_api
    result = method(self._model, cr, uid, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/models.py", line 4179, in _create
    self._check_selection_field_value(cr, user, field, vals[field], context=context)
  File "/home/tertia/workspace/odoo8/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/api.py", line 336, in old_api
    result = method(recs, *args, **kwargs)
  File "/home/tertia/workspace/odoo8/openerp/models.py", line 2245, in _check_selection_field_value
    field.convert_to_cache(value, self)
  File "/home/tertia/workspace/odoo8/openerp/fields.py", line 1389, in convert_to_cache
    raise ValueError("Wrong value for %s: %r" % (self, value))
ValueError: Wrong value for calendar.event.state: 'done'

Calendar - Two Date Column

Hi,

I just testet your reminder_* extensions - thank you for sharing these!

One problem for me is that reminder_crm_next_action and reminder_phonecall use different Date-Columns in Calendar View. This makes sorting events very hard.

To reproduce:

  1. Create an Opportunity -> Add Next Action with Date
  2. Schedule a Phone Call with Date
  3. Check Messaging -> Calendar -> List View shows two Date Columns (see screenshot)

Is there any chance to use the same Column for both reminders to support sorting?

Thanks!
Steve

screen shot 2015-08-05 at 17 07 33

[v9] web_iframe

installed web_iframe under V9e.

under IFrame/Configuration/Pages, I create a record with:

group: / IFrame/test
Entry: google
Link: http://www.google.com
sequence: 5

the Group:

Menu: test
Parent Menu: IFrame
Sequence: 10
Full Path: IFrame/test
Action: ir.actions.act_url  -> toto

toto:

action name: toto
action target: This Window
action url: http://www.google.com
action type: ir.actions.act_url

When clicking on the menu "google" (under "test" menu) I get an error:

**

Action ERROR
Could not find client action 'web_iframe.iframe'.

**


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Uncaught Exceptions Dialogs are being suppressed

Hello @yelizariev I firstly would like to commend your work!

That said Uncaught exception thrown by the server is no longer being displayed in the js popup dialog. Inspecting this in chrome's developer console shows the following:

Uncaught TypeError: content.html is not a functioninstance.web.Dialog.include.init @ 23f952e:3950(anonymous function) @ 146c588:1092Class @ 146c588:1090instance.web.CrashManager.instance.web.Class.extend.show_error @ 23f952e:3054instance.web.CrashManager.include.show_error @ 23f952e:4165(anonymous function) @ 146c588:1092window.onerror @ 23f952e:3087

I pinpointed this error to https://github.com/yelizariev/addons-yelizariev/blob/8.0/web_debranding/static/src/js/dialog.js#L25

Looks like the code expecting jquery object however a string is being passed to the function; can we insert a check for type first and proceed according?

Mail footer on project issue

Hi

Thanks for your work !

I have installed the mail_footer addons, and with the invoices I have no problems, but when I send an email from the Project Issue module, I get a ", shortcut to Project Issue XXXXX" on the footer of my email. Is there anything that can be done to solve that?

Thanks.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Remove Powered by Odoo footer on login

Hi there

I was wondering if you could create a module to remove the "Powered by Odoo" on Login and next to it also to remove the link 'manage databases', and also the odoo footer while browsing in odoo.

I know this must be easy and i can actually remove or edit the website_templates.xml myself but the problem is i do not know how to create a module.

Can you do this?
thanks in advance

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.