Commit Graph

682 Commits

Author SHA1 Message Date
antonio
9fef9082e8 Merge remote-tracking branch 'origin/11.0-mig-web_access_rule_buttons' into 11.0-mig-web_access_rule_buttons
# Conflicts:
#	web_access_rule_buttons/models/models.py
2019-05-09 13:16:10 +02:00
antonio
811437e192 Implemented automatic tests 2019-05-09 13:15:20 +02:00
QS5ELkMu
06e036c7ea Update web_access_rule_buttons/models/models.py
Co-Authored-By: espo-tony <espo-tony@users.noreply.github.com>
2019-04-26 08:50:30 +02:00
antonio
db24654f65 Bugfixing: Always allow all operations when an empty recordset is passed 2019-04-19 16:33:34 +02:00
antonio
86bd1b441c Merge remote-tracking branch 'espo-tony/11.0-mig-web_access_rule_buttons' into 11.0-mig-web_access_rule_buttons 2019-04-10 11:37:20 +02:00
antonio
1afc15bd5c [11.0][MIG] web_access_rule_buttons: Migration to 11.0 2019-04-10 11:33:42 +02:00
antonio
22526de6b5 Solving lint errors 2019-04-10 10:35:24 +02:00
antonio
ab3c0c7d41 [MIG] web_access_rule_buttons: Migration to 11.0 2019-04-10 09:20:12 +02:00
OCA-git-bot
b5d1447ae8 [ADD] icon.png 2019-04-10 09:18:46 +02:00
oca-travis
cfa46f3ecc [UPD] Update web_access_rule_buttons.pot 2019-04-10 09:18:46 +02:00
George Daramouskas
77b6001a98 [MIG] Migration from 9.0 to 10.0 web_access_rule_buttons (#628)
* [MIG] Migration from 9.0 to 10.0

* Refactoring javascript code
2019-04-10 09:18:46 +02:00
Pedro M. Baeza
e990de59a2 [MIG] Rename manifest files 2019-04-10 09:18:46 +02:00
Pedro M. Baeza
06780561c2 [MIG] Make modules uninstallable 2019-04-10 09:18:46 +02:00
Guewen Baconnier
5bdb291757 Skip check on TransientModels without ID
Fix:

Traceback (most recent call last):
  File "/opt/odoo/src/openerp/http.py", line 643, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/src/openerp/http.py", line 680, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/src/openerp/http.py", line 316, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/src/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/src/openerp/http.py", line 309, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/src/openerp/http.py", line 959, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/src/openerp/http.py", line 509, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/src/addons/web/controllers/main.py", line 893, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/opt/odoo/src/addons/web/controllers/main.py", line 885, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/opt/odoo/src/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/src/openerp/api.py", line 381, in old_api
    result = method(recs, *args, **kwargs)
  File "/opt/odoo/external-src/web/web_access_rule_buttons/models.py", line 24, in check_access_rule_all
    result[operation] = True
  File "/opt/odoo/src/openerp/api.py", line 248, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/src/openerp/api.py", line 574, in new_api
    result = method(self._model, cr, uid, self.ids, *args, **old_kwargs)
  File "/opt/odoo/src/openerp/models.py", line 3554, in check_access_rule
    WHERE id IN %%s""" % self._table, (tuple(ids),))
  File "/opt/odoo/src/openerp/sql_db.py", line 139, in wrapper
    return f(self, *args, **kwargs)
  File "/opt/odoo/src/openerp/sql_db.py", line 218, in execute
    res = self._obj.execute(query, params)
ProgrammingError: syntax error at or near ")"
LINE 3:                           WHERE id IN ()
2019-04-10 09:18:46 +02:00
Guewen Baconnier
f44ddacb88 Check if button is defined and use .prop() 2019-04-10 09:18:46 +02:00
Guewen Baconnier
836a642c42 Remove unused variables 2019-04-10 09:18:46 +02:00
Yannick Vaucher
bad95ccf02 Check if buttons are set in case we are in a popup window 2019-04-10 09:18:46 +02:00
Guewen Baconnier
400030f06a Add web_access_rule_buttons
Disable buttons which lead to action disallowed by record rules.
2019-04-10 09:18:46 +02:00
Alexandre Díaz
50c069e393 [11.0][FIX] web_responsive: Loading indicator 2019-04-09 15:39:43 +02:00
oca-travis
5095b427c9 [UPD] Update web_widget_timepicker.pot 2019-04-09 07:51:42 +00:00
Alexandre Díaz
18aa62efb2 [11.0][MIG] web_widget_timepicker 2019-04-09 09:46:56 +02:00
Holger Brunn
959037eee9 [FIX] RST syntax 2019-04-09 09:46:56 +02:00
oca-travis
820f95192d [UPD] Update web_widget_timepicker.pot 2019-04-09 09:46:56 +02:00
smurf-U
815843b9a2 [10.0][MIG]migrate web_widget_timepicker 2019-04-09 09:46:56 +02:00
Pedro M. Baeza
a217983512 [MIG] Rename manifest files 2019-04-09 09:46:56 +02:00
Pedro M. Baeza
59b6782a33 [MIG] Make modules uninstallable 2019-04-09 09:46:56 +02:00
docmfried
99241d8652 [FIX]: Change README.rst according to OCA template
[IMP]: New module icon
[ADD]: Screenshot / images to give an visual overview
2019-04-09 09:46:56 +02:00
docmfried
ce89284d73 [FIX]: Remove needless comments in __openerp__.py
[FIX]: Cleanup user provided timepicker options initialization and handling
2019-04-09 09:46:56 +02:00
docmfried
05838eafc6 [FIX]: More TravisCI LINT errors
[FIX]: Replace eval() function in web_widget_timepicker.js
[FIX]: Change options to data-options in field record defintion
2019-04-09 09:46:56 +02:00
docmfried
35c2984844 [FIX]: More TravisCI LINT errors
[FIX]: Missing semicolon in web_widget_timepicker.js
2019-04-09 09:46:56 +02:00
docmfried
6149564392 [FIX]: Formal license and Travis LINT errors
[FIX]: Renaming files according to OCA standards
[FIX]: Change internal persistance form char to float
[FIX]: Reorder jquery plugin to lib directory
[ADD]: Form field record defintion can override timepicker plugin options
2019-04-09 09:46:56 +02:00
docmfried
50586c1ba2 [ADD] Added new form field web timepicker widget for Odoo Version 9.0 2019-04-09 09:46:56 +02:00
docmfried
8548a1d0b7 Added new form field web timepicker widget for Odoo Version 9.0 2019-04-09 09:46:56 +02:00
oca-travis
21dcc60bec [UPD] Update web_view_transition.pot 2019-04-04 10:18:51 +00:00
Alexandre Díaz
8b1b3b4422 [11.0][ADD] web_view_transition 2019-04-04 08:51:13 +02:00
Pedro M. Baeza
0583476484 Merge pull request #1211 from Eficent/11.0-fix-web_widget_bokeh_chart
[11.0][FIX] web_widget_bokeh_chart: fix grahs expanding outside the container element.
2019-03-11 18:52:33 +01:00
Lois Rilo
eebb98e2be [11.0][FIX] web_widget_bokeh_chart: fix grahs expanding outside the container element. 2019-03-11 11:17:57 +01:00
Pedro M. Baeza
ebb587e162 Merge pull request #955 from Tecnativa/11.0-web_widget_datepicker_options-remove
[REM] web_widget_datepicker_options: No longer needed
2019-03-07 13:15:56 +01:00
Jairo Llopis
67793c90e4 [REM] web_widget_datepicker_options: No longer needed
This addon is no longer needed since https://github.com/odoo/odoo/pull/25044#issuecomment-396940644 and https://github.com/odoo/odoo/pull/27541, so I remove it.
2019-03-07 11:19:35 +00:00
oca-travis
80192f9239 [UPD] Update web_listview_invert_selection.pot 2019-03-05 14:17:02 +00:00
Meet Dholakia
c509fa80ef [IMP]Improved style and added title attrib on element to display as tooltip. 2019-03-05 15:12:03 +01:00
Meet Dholakia
0cd8a45484 [MIG] web_listview_invert_selection : Migration to 11.0 2019-03-05 15:12:03 +01:00
OCA Transbot
d1dfc9c088 OCA Transbot updated translations from Transifex 2019-03-05 15:12:03 +01:00
Antonio Esposito
dacb60f784 [10.0][ADD] Module web_listview_invert_selection (#538)
* [10.0][ADD] Module web_listview_invert_selection

* [FIX] Multiple code reviews

* [FIX] Changed single-quotes to double-quotes for improving codacy tests;
2019-03-05 15:12:03 +01:00
oca-travis
611272526d [UPD] Update web_drop_target.pot 2019-03-04 18:20:17 +00:00
Simone Orsi
df86d690fe Merge pull request #974 from grindtildeath/11.0-mig_web_drop_target
[11.0][MIG] web_drop_target
2019-03-04 19:15:18 +01:00
Akim Juillerat
82616c4748 [MIG] web_drop_target : Migration to 11.0 2019-03-04 17:56:31 +01:00
Holger Brunn
f3c2e521a9 [ADD] web_drop_target 2019-03-04 17:56:31 +01:00
OCA Transbot
e855eb7d38 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-11.0/web-11.0-web_widget_domain_editor_dialog
Translate-URL: https://translation.odoo-community.org/projects/web-11-0/web-11-0-web_widget_domain_editor_dialog/
2019-03-03 16:18:42 +00:00
oca-travis
167fbd2a52 [UPD] Update web_widget_domain_editor_dialog.pot 2019-02-27 17:18:57 +00:00