oca / web Goto Github PK
View Code? Open in Web Editor NEWOdoo web client UI related addons
License: GNU Affero General Public License v3.0
Odoo web client UI related addons
License: GNU Affero General Public License v3.0
Boolean parameters in module web_m2x_options are declared with lowercase characters in views (true/false) and in capital letters in the system parameters (True/False).
One way should be chosen and used everywhere, or they should be automatically put to lowercase so that the user can use both ways.
Hi all,
I tried today to use 'web_color' module, but it failed. Description of the module is very small. Are some people that use it in some custom modules ?
Regards.
My code:
[From Model]
class MyModel(Model):
_columns = {
'color': fields.char(
'Color', size=7,
help="Color of the Price Tag by default. Format #RRGGBB"),
[From view]
field name="color" widget="color"
[from openerp file]
depends = ['web_color']
At the end, i have a Javascript error. (Mozilla / Chrome)
TypeError: obj is not a constructor
I installed both the apps web_tree_image and product_image_list_view and I am still getting only download links instead of images in tree view. In sale order line, I am able to see an image. But when I edit the product.template tree view (warehouse -> products) to add "" I am seeing only download link instead of the images.
After some debugging, I found out that "row_data[this.id].value" in js returns the size string ("xxxx bytes"/"xxxx kB",..) instead of the binary value. This results in
img src="data:image/png;base64,127 kB" width="64px" height="64px"
Notice the string"127 kB" after base64. Here the value of field should be printed out.
I am using bitnami odoo instance 8.0-8 which uses odoo nightly version 8.0-20150423
Done in #120
Thanks for you nice work on it, but.
module: web_environment_ribbon
version: 8.0
current firefox
Steps to reproduce
Current behavior
The ribbon hides the menu bar
Expected behavior
Could you add a margin-top, please
Read OCA/maintainer-tools#29 to know more about it
module: web_advanced_search_x2x
version: 8.0
Steps to reproduce
Current behavior
https://cloud.githubusercontent.com/assets/8736623/9080061/83cfe75c-3b50-11e5-811c-90f066c1e066.png
Expected behavior
Must be a little bit more separated
Both modules has interesting concepts and basically the same bad things.
I did something like this concepts for v7.0 and I think the concept is almost mandatory, then to bring back a strong solution I propose:
This is a basic TODO list if original creators @rvalyi and @lmignon think different this is an open issue to start the discussion or may be they have strongest ideas to put here and may be already started the job.
This module is linked to website repo, not web (in the concept of modifications to web client).
Get this traceback in http://3110944-8-0-206567.runbot1.odoo-community.org
Odoo Server Error
Traceback (most recent call last):
File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3110944-8-0-206567/openerp/http.py", line 537, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3110944-8-0-206567/openerp/http.py", line 1413, in _dispatch_nodb
func, arguments = self.nodb_routing_map.bind_to_environ(request.httprequest.environ).match()
File "/srv/openerp/instances/openerp-oca-runbot/sandbox/local/lib/python2.7/site-packages/werkzeug/routing.py", line 1430, in match
raise NotFound()
NotFound: 404: Not Found
Hi, I have try to test the ckeditor4 modul with aeroo templates.
But the aeroo templates are printed with the html-codes from the editor.
for example:
Have anyone a fix for the aeroo Templates ? or something?
Thanks...
I'm performing it, so that anyone starts the work separately.
When this addon is installed, the instance becomes unusable.
TypeError: moment.tz is undefined
tz = moment.tz.zone(args.tz_name.toJSON()),
this is from web_pytz.js (line 55, col 12)
Dates are exported as "General" format which makes excel calculations a problem. Can you revert this back to the way it was? Export dates as "Date" format.
When you selects 'is in selection' option, the favorite filters not showed.
CC @rafaelbn
The module help_online depende of anybox for testing, is that ok for us? when you run with test enabled and such modules intitated you receive this message:
2015-08-06 07:00:37,218 26341 ERROR vauxoo openerp.modules.module: Can not `import help_online`.
Traceback (most recent call last):
File "/Users/nhomar/Trabajo/odoo80/openerp/modules/module.py", line 377, in get_test_modules
mod = importlib.import_module('.tests', modpath)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/Users/nhomar/Trabajo/web/help_online/tests/__init__.py", line 20, in <module>
from . import test_export_help_wizard
File "/Users/nhomar/Trabajo/web/help_online/tests/test_export_help_wizard.py", line 25, in <module>
from anybox.testing.openerp import SharedSetupTransactionCase
ImportError: No module named anybox.testing.openerp
result:
http://localhost:4069/web?#page=0&limit=80&view_type=list&model=ir.module.module&action=37:7
export as csv format is working
export excel format without web_export_view is working
after installed, I can't open it in Local models, here is pop error message:
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/openerp/http.py", line 537, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/openerp/http.py", line 574, in dispatch
result = self._call_function(*_self.params)
File "/opt/odoo/openerp/http.py", line 310, 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 307, in checked_call
return self.endpoint(_a, *_kw)
File "/opt/odoo/openerp/http.py", line 803, in call
return self.method(_args, *_kw)
File "/opt/odoo/openerp/http.py", line 403, in response_wrap
response = f(_args, *_kw)
File "/opt/odoo/addons/web/controllers/main.py", line 944, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/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/openerp/api.py", line 241, in wrapper
return old_api(self, _args, *_kwargs)
File "/opt/odoo/openerp/models.py", line 3141, in read
result = BaseModel.read(records, fields, load=load)
File "/opt/odoo/openerp/api.py", line 239, in wrapper
return new_api(self, _args, *_kwargs)
File "/opt/odoo/openerp/models.py", line 3176, in read
self._read_from_database(stored, inherited)
File "/opt/odoo/openerp/api.py", line 239, in wrapper
return new_api(self, _args, *_kwargs)
File "/opt/odoo/openerp/models.py", line 3354, in _read_from_database
res2 = self._columns[f].get(cr, self._model, ids, f, user, context=context, values=result)
File "/opt/odoo/openerp/osv/fields.py", line 1468, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/opt/odoo/openerp/addons/base/module/module.py", line 186, in _get_desc
output = publish_string(source=module.description or '', settings_overrides=overrides, writer=MyWriter())
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/core.py", line 414, in publish_string
enable_exit_status=enable_exit_status)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/core.py", line 662, in publish_programmatically
output = pub.publish(enable_exit_status=enable_exit_status)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/core.py", line 217, in publish
self.settings)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/readers/init.py", line 72, in read
self.parse()
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/readers/init.py", line 78, in parse
self.parser.parse(self.input, document)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/parsers/rst/init.py", line 172, in parse
self.statemachine.run(inputlines, document, inliner=self.inliner)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 170, in run
input_source=document['source'])
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/statemachine.py", line 239, in run
context, state, transitions)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/statemachine.py", line 460, in check_line
return method(match, context, next_state)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2726, in underline
self.section(title, source, style, lineno - 1, messages)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 327, in section
self.new_subsection(title, lineno, messages)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 395, in new_subsection
node=section_node, match_titles=True)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 282, in nested_parse
node=node, match_titles=match_titles)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 195, in run
results = StateMachineWS.run(self, input_lines, input_offset)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/statemachine.py", line 239, in run
context, state, transitions)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/statemachine.py", line 460, in check_line
return method(match, context, next_state)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 1135, in indent
elements = self.block_quote(indented, line_offset)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 1150, in block_quote
self.nested_parse(blockquote_lines, line_offset, blockquote)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 282, in nested_parse
node=node, match_titles=match_titles)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 195, in run
results = StateMachineWS.run(self, input_lines, input_offset)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/statemachine.py", line 239, in run
context, state, transitions)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/statemachine.py", line 460, in check_line
return method(match, context, next_state)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2720, in underline
source=src, line=srcline)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/utils/init.py", line 235, in severe
return self.system_message(self.SEVERE_LEVEL, _args, *_kwargs)
File "/home/odoo/odoo/lib/python2.7/site-packages/docutils/utils/init.py", line 193, in system_message
raise SystemMessage(msg, level)
SystemMessage: :19: (SEVERE/4) Unexpected section title.
I would be nice if table head were float, like in this link:
I want to use the oca widget to display and edit some data in a 2D Matrix.
In this repo: https://github.com/jjrevilla/test_widget_matrix, I tried to reproduce the image of example at readme of project:
Main Model:
class Manager(models.Model):
_name = 'test.matrix.manager'
task_id = fields.One2many('test.matrix.task', 'manager_id', string='Tasks')
date_begin = fields.Date(string='From')
date_end = fields.Date(string='To')
Related Model:
class TasK(models.Model):
_name = 'test.matrix.task'
employee_id = fields.Many2one('test.matrix.employee', string='Employee')
project_id = fields.Many2one('test.matrix.project', string='Project')
planned_hours = fields.Integer(string='Hours Assigned')
manager_id = fields.Many2one('test.matrix.manager', string='Manager')
Form View:
<field name="task_id" widget="x2many_2d_matrix" field_x_axis="employee_id" field_y_axis="project_id" field_value="planned_hours" />
@hbrunn, Is this widget ment to be used different, or am I doing something wrong?
I've noticed an issue that when the "easy switch company" menu item is inserted into the top bar, the other menu items don't "contract" to make space for this new item, and thus the new item wraps to the next line.
However, on screen resize the "menu_bound" event is executed and the size of the section with normal menu items is recalculated, some items are shifted to the "More" menu, and it all fits again.
I've found a workaround which is to add the following code to instance.web.UserMenu.init in switch_company.js,
$(document).ready(function(ev) {
openerp.web.bus.trigger('resize');
});
It doesn't seem to be the cleanest solution, but at least it works. Anybody else has noticed the same?
I'm using the 'web_tree_image' module.
But I couldn't export image field.
Is there any way that export to excel with image?
Thank you
At this moment I don't have isolate if this is a problem with web_easy_switch_company module or with odoo itself as don't know in deep how the context works.
The situation is as follows:
1.- User have been working with with company A and switch to company B
2.- User tries to print a quotation or a so and gets and permission denied error on partner object, because user object in report thread have company set to A.
Please advice on how can we debug and correct this situation.
If I use web_advanced_search_x2x for example in reporting>invoice analysis, to search for articles with certain features (for example a specific pricelist), it automatically also restricts to the active articles only.
Inactive articles are excluded and can't be re-included afterwards.
If want to include inactives, I must search for products with "my criteria AND (active=true OR active=false)".
It would be nicer to not exclude inactive records by default.
Only web_shortcuts is installed.
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/openerp/http.py", line 518, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/openerp/http.py", line 539, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/openerp/http.py", line 295, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/openerp/http.py", line 292, in checked_call
return self.endpoint(*a, **kw)
File "/home/odoo/openerp/http.py", line 755, in __call__
return self.method(*args, **kw)
File "/home/odoo/openerp/http.py", line 388, in response_wrap
response = f(*args, **kw)
File "/home/odoo/addons/web/controllers/main.py", line 949, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/odoo/addons/web/controllers/main.py", line 941, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
AttributeError: 'NoneType' object has no attribute 'get_user_shortcuts'
Testing the last versions of those modules I could find the following errors on them
I still need to test more. But It's quite urgent we solve these bugs asap.
Thank you:
Ana
Hi guys,
The module 'web_widget_color' is really great and cool. I was wondering if it would be possible to add support for (calendar) items in kanban view? There is currently nothing built that gives the ability to modify colors on calendar items and/or calendar users.
Give me some ideas / input and I will try to contribute. I personally need the ability to set colors on agenda items so I'll try to extend it in this module?
With kind regards,
Yenthe
module: web_ckeditor4
version: 8.0
Steps to reproduce
Current behaviour
It raises the following error:
TypeError: undefined is not an object (evaluating 'self.editor.name').
Expected behaviour
The record should be saved without errors
/cc @StefanRijnhart
Hi @hbrunn ,
This happends with any query but I will show here only one.
I would like to filter projects which User (uid) is "manager" OR "member" or "follower".
In Odoo core we cannot make this search because the follower are res.partner and not res.user then we need to select Follower -> Is in selection and then in res.parter search User -> the user.
When Odoo creates the filter for this you can only select the res.partner and this is the query:
['|',
'|', ['message_follower_ids', '=', 748], ['members', '=', 52],
['user_id', '=', 52],
['state', '!=', 'close'], ['state', '!=', 'cancelled']]
When I create the query using advance search it make this wrong:
[['message_follower_ids.id', 'in', [748]], ['members', '=', 52], ['user_id', '=', 52],
['state', '!=', 'close'], ['state', '!=', 'cancelled']]
But it must create this:
['|',
'|', ['message_follower_ids.user_ids', '=', 748], ['members', '=', 52],
['user_id', '=', 52],
['state', '!=', 'close'], ['state', '!=', 'cancelled']]
Regards
It would be nice to be have a feature allowing to set the favicon for an Odoo instance or, if possible, depending on the active Company.
Can experts comment if this is feasible? Given some guidelines I could try a PR.
When a user checks the "check all" check box at the top of a tree, web_export_view should export all rows of the related tree view using the domain, not just the currently visible rows.
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/openerp/http.py", line 518, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/openerp/http.py", line 539, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/openerp/http.py", line 295, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/openerp/http.py", line 292, in checked_call
return self.endpoint(*a, **kw)
File "/home/odoo/openerp/http.py", line 755, in __call__
return self.method(*args, **kw)
File "/home/odoo/openerp/http.py", line 388, in response_wrap
response = f(*args, **kw)
File "/home/odoo/addons/web/controllers/main.py", line 953, in call_button
action = self._call_kw(model, method, args, {})
File "/home/odoo/addons/web/controllers/main.py", line 941, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/home/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/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 "/home/odoo/openerp/modules/registry.py", line 346, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/odoo/openerp/modules/loading.py", line 431, in load_modules
registry['ir.module.module'].module_uninstall(cr, SUPERUSER_ID, modules_to_remove.values())
File "/home/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/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 "/home/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/openerp/addons/base/ir/ir_model.py", line 1207, in _module_data_uninstall
ir_model_constraint._module_data_uninstall(cr, uid, constraint_ids, context)
File "/home/odoo/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/openerp/addons/base/ir/ir_model.py", line 577, in _module_data_uninstall
model_obj = self.pool[model]
File "/home/odoo/openerp/modules/registry.py", line 101, in __getitem__
return self.models[model_name]
KeyError: u'web.shortcut'
module: web_advanced_search_x2x
version: 8.0
Steps to reproduce
Current behavior
Inside advance search all fields appears not translated
Expected behavior
See translated all fields that are already traslated in Odoo
to be consistent with odoo "More" policy the "Export current view" should be placed in the drop down list and not beside (although I find it quite useful to have it as an extra button)
Dears,
I would suggest the web-lang module to be added to OCA.
this module adds support for language based css files to load modules and attributes like language direction and styles.
Also there are other general modules like:
https://github.com/mohamedhagag/dvit-odoo8
Regards,
Tried the help_online module today but it did not work on Chrome (Latest - Version 44.0.2403.125 m). Opened up the same site on Firefox and it worked. Is this a known issue? Are there workarounds?
Hi
Can you please create a module for replacing all page titles in Odoo ?
it would be much appreciated.
module: web_advanced_search_x2x
version: 8.0
Steps to reproduce
Current behavior
The following client error appears:
Uncaught Error: NameError: name 'project_id' is not defined
Expected behavior
The drop-down appears allowing to select the stage
after install web_advanced_search_x2x successfully,
for one2many field, there is error message
Odoo Client Error
Error: cannot call methods on autocomplete prior to initialization; attempted to call method 'widget'
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-9.0
as in the title, the "Export current view" is not created for Accounting/Journal Items - but for all others I have checked it works
IIRC the journal view is somewhat hard coded (hint)
I think that we should also resize chatter area to extend it to full width area. What do you think?
When you have a view that contains a one2many field, and this field opens a popup for the form window, fields that are readonly in this sub-model are not saved although you pass the correct context.
@JonathanNEMRY, @petrus-v, have you faced this case?
Hi,
I am trying to port module web_nocreatedb to v8, without success, so far.
I have some doubts regarding the qweb inheritance, as well as I see difference usage in v7 and v8.
web/static/src/xml/base.xml
, which is added in 'qweb' within openerp.pyweb/views/webclient_templates.xml
, which is added in 'data' within openerp.pyThe exact template to modify in v8 is:
<template id="web.login_layout" name="Login Layout">
specifically, this part:
<div class="oe_single_form_footer" t-if="not disable_footer">
<t t-if="not disable_database_manager">
<a class="oe_login_manage_db" t-attf-href="/web/database/manager{{ '?debug' if debug else '' }}">Manage Databases</a>
<span class="oe_footer_seperator"> | </span>
</t>
<a href="https://www.odoo.com" target="_blank">Powered by <span>Odoo</span></a>
</div>
openerp-gevent -c my_config_file --load=web,web_nocreatedb --database=my_db
First I tried to just change what is in web_nocreatedb v7 to point to the new ids, but doesn't seem to work, complaining about not boing within tags.
Then I tried to move it web_nocreatedb/views/webclient_templates.xml
, but nothing seems to work either.
Now I have this:
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<template id="login_layout_no_db" inherit_id="web.login_layout" name="Login Layout">
<t t-jquery="div[class='oe_single_form_footer']" t-operation="replace">
<div class="oe_single_form_footer">
<a href="https://www.odoo.com" target="_blank">Powered by <span>Odoo</span></a>
</div>
</t>
</template>
</data>
</openerp>
Also tried with xpath:
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<template id="login_layout_no_db" inherit_id="web.login_layout" name="Login Layout">
<xpath expr="//div[class='oe_single_form_footer']" position="replace">
<div class="oe_single_form_footer">
<a href="https://www.odoo.com" target="_blank">Powered by <span>Odoo</span></a>
</div>
</xpath>
</template>
</data>
</openerp>
But in both cases I get this error:
2015-03-02 12:47:17,822 17312 ERROR forbe__v8_13_clone openerp.addons.base.ir.ir_ui_view: El elemento '<xpath expr="//div[class='oe_single_form_footer']">' cannot be located in parent view
Context error:
View `Login Layout`
[view_id: 870, xml_id: n/a, model: n/a, parent_id: 171]
Any direction to correctly port this module?
With the web_ckeditor4 enabled, editing an email template breaks the template.
The code before saving is, for example:
% if object.origin:
Order reference: ${object.origin}<br />
% endif
and after saving:
% if object.origin: Order reference: ${object.origin}<br />
% endif %
The missing enters break the mako formatting engine, you have to edit the template by hand..
This is in 8.0.
(Ninja edit, %endif
is not removed)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.