Commit Graph

149 Commits (f14199f452699064cd5e47f27bcd6076d3db16f7)

Author SHA1 Message Date
Sylvain Calador f14199f452 [IMP] README.rst: more explicative description 2018-03-19 11:20:14 +01:00
Sylvain Calador c2511e50b1 [REF] Rename the module according to the OCA naming convention 2018-03-19 11:20:14 +01:00
Pedro M. Baeza a095b86105
Merge pull request #886 from guewen/11.0-fix-dynamic-colored-json-parse-object
Fix several issues in web_tree_dynamic_colored_field
2018-03-16 17:49:39 +01:00
Guewen Baconnier 06d6c0b70e web_tree_dynamic_colored_field: correct options examples in readme 2018-03-08 08:59:46 +01:00
Guewen Baconnier 9e99022497 web_tree_dynamic_colored_field: Assume that color may not start with 'color_field'
The index at 0 in the following code:
  var colorField = this.arch.attrs.colors.split(';')
  .filter(color => color.trim().startsWith('color_field'))[0]
Was failing on such valid xml:
  <tree string="Buffer monitor"
        colors="red:procure_recommended_qty &gt; 0">
2018-03-08 08:59:46 +01:00
Guewen Baconnier 9394c56911 web_tree_dynamic_colored_field: Parse field options with pyeval
The options in <field> attributes are parsed as python expressions:
d18976d748/addons/web/static/src/js/services/data_manager.js (L273)

And the options in <button> are parsed as json...
d18976d748/addons/web/static/src/js/services/data_manager.js (L411)

This code only support the <field> element because I'm not sure there
is a use for the <button> element.
2018-03-08 08:59:46 +01:00
Pedro M. Baeza b5232fd247
Merge pull request #885 from guewen/11.0-fix-m2o-clickable-button
[FIX] web_tree_many2one_clickable: Check if the node is a field
2018-03-07 10:13:01 +01:00
Guewen Baconnier 63c61d8695 web_tree_many2one_clickable: Check if the node is a field
If a list contains a node which is not a field (e.g. a button), it will
not be found in the fields so we'll have an error trying to get 'type'
from undefined.
2018-03-07 10:06:16 +01:00
OCA Git Bot 2372d04e11 [ADD] setup.py 2018-02-27 04:38:09 +01:00
Pedro M. Baeza 35480bca63
Merge pull request #875 from arkostyuk/11.0-mig-web_tree_dynamic_colored_field
[11.0][MIG] web_tree dynamic_colored_field
2018-02-26 23:53:09 +01:00
Pedro M. Baeza dee7531636
Merge pull request #876 from arkostyuk/11.0-mig-web_tree_many2one_clickable
[11.0][MIG] web_tree_many2one_clickable
2018-02-26 23:52:36 +01:00
Artem Kostyuk 3965057913 [MIG] web_tree_dynamic_colored_field: Migration to 11.0 2018-02-26 21:37:43 +01:00
OCA Transbot 5ff8dd2611 OCA Transbot updated translations from Transifex 2018-02-26 21:36:42 +01:00
jesusVMayor eeec368721 Migration of web_tree_dynamic_colored_field to 10.0 2018-02-26 21:36:42 +01:00
Holger Brunn 89fdf5d983 web_tree_dynamic_colored_field v9
demo view
2018-02-26 21:36:42 +01:00
OCA Transbot 20bff22e26 OCA Transbot updated translations from Transifex 2018-02-26 21:36:42 +01:00
Holger Brunn 313cfa2595 delete unused code, move files to standard locations
support color_field attribute

update manifest

higher version number bump

typo
2018-02-26 21:36:42 +01:00
Damien Crier 104fd9f821 [IMP] rename module to 'web_tree_dynamic_colored_field' 2018-02-26 21:36:39 +01:00
Artem Kostyuk 73c4195fe3 [MIG] web_tree_many2one_clickable: Migration to 11.0 2018-02-26 21:32:01 +01:00
Atchuthan, Sodexis 08a75a1dba [MIG] web_tree_many2one_clickable: Migrated to 10.0 2018-02-26 21:06:50 +01:00
Antonio Espinosa 4e96ea5c53 [MIG] web_tree_many2one_clickable: Migration to 9.0 2018-02-26 21:06:50 +01:00
Holger Brunn 834b5adb54 support reference fields in many2one_clickable widget 2018-02-26 21:06:50 +01:00
Antonio Espinosa c6a7f600bc [FIX] Allow set web_tree_many2one_clickable.default as True 2018-02-26 21:06:50 +01:00
Pedro M. Baeza faa6a8b2d2 [ADD] web_tree_many2one_clickable
Clickable many2one fields for tree views
========================================

This addon provides a separate widget to allow many2one fields in a tree view
open the linked resource when clicking on their name.

You can also define a system parameter to have this behaviour for all the
existing many2one fields in tree views.

Installation
============

Install it the regular way.

Configuration
=============

If you want to have all many2one fields clickable by default, you have to
define in *Configuration > Technical > Parameters > System parameters*, a new
parameter with name `web_tree_many2one_clickable.default` and with value
`true`.

Usage
=====

For the widget option, you need to add `widget="many2one_clickable"` attribute
in the XML field definition in the tree view.

For example:

`<field name="partner_id" widget="many2one_clickable" />`

will open the linked partner in a form view.

Known issues / Roadmap
======================

* You cannot deactivate clickable behaviour for an specific many2one field if
  you configure the system parameter.
* The value of the system parameter is retrieved for each many2one field
  present in the view instead of only once.
2018-02-26 21:06:50 +01:00
David Vidal 5543939b13 [FIX] web_decimal_numpad: extend FieldMonetary (#867) 2018-02-23 00:54:35 +01:00
OCA Git Bot 5e276d803f [ADD] setup.py 2018-02-20 04:37:48 +01:00
Jordi Ballester Alomar 6756affb15
Merge pull request #870 from arkostyuk/11.0-mig-web_widget_bokeh_chart
[11.0][MIG] web_widget_bokeh_chart
2018-02-19 14:52:40 +01:00
Artem Kostyuk 53b2940f1b [MIG] web_widget_bokeh_chart: Migration to 11.0 2018-02-19 13:30:30 +02:00
Pedro M. Baeza 321d690082 [FIX] web_widget_bokeh: Fix README syntax
Avoid "Duplicate explicit target name" error using anonymous hyperlink references

Ref.: https://stackoverflow.com/questions/5464627/how-to-have-same-text-in-two-links-with-restructured-text/14067756#14067756
2018-02-16 15:18:16 +02:00
lreficent 661b70a267 [10.0][MIG] web_widget_bokeh_chart 2018-02-16 15:18:16 +02:00
lreficent 3ba0eaceca several fixes 2018-02-16 15:18:16 +02:00
lreficent d991ed117b travis 2018-02-16 15:18:16 +02:00
lreficent 283ef0d5c0 [9.0][ADD] web_widget_bokeh_chart 2018-02-16 15:18:16 +02:00
OCA Git Bot 34770b3397 [ADD] setup.py 2018-02-14 04:37:36 +01:00
Cédric Pigeon b860002191 [ADD] add setup for web_action_conditionable 2018-02-13 08:23:55 +00:00
andreparames f0e506345f [MIG] web_action_conditionable: Migration to 11.0 2018-02-13 08:23:55 +00:00
Pedro M. Baeza a3a57b0d02 [MIG] Rename manifest files 2018-02-13 08:23:55 +00:00
Pedro M. Baeza 3cd55c0b61 [MIG] Make modules uninstallable 2018-02-13 08:23:55 +00:00
Stéphane Bidoul 3647bc0b7b [UPD] prefix versions with 8.0 2018-02-13 08:23:55 +00:00
Yannick Vaucher 035b051778 Add missing default oca icons 2018-02-13 08:23:55 +00:00
Cristian Salamea 1da5bbdfa9 [add] web_action_conditionable 2018-02-13 08:23:55 +00:00
OCA Git Bot 6726c8ef74 [ADD] setup.py 2017-12-19 04:36:40 +01:00
Pedro M. Baeza fca3782269
Merge pull request #828 from Tecnativa/11.0-mig-web_decimal_numpad_dot
[MIG] web_decimal_numpad_dot: Migration to 11.0
2017-12-18 17:53:58 +01:00
David 6c11d0bd25 [MIG] web_decimal_numpad_dot: Migration to 11.0 2017-12-18 11:06:01 +01:00
Jairo Llopis 9a730cdf02 [FIX][IMP][web_decimal_numpad_dot] Support float time
- All Char widgets were getting affected by this behavior.
- Time float widgets now get ":" instead of "," or ".".
- Little code refactor.
- Only detect numpad dot, not normal dot and comma.
2017-12-18 10:39:04 +01:00
David Vidal aa1043ce90 [MIG] web_decimal_numpad_dot: Migration to 10.0 2017-12-18 10:39:04 +01:00
Roel Adriaans 4e33022a92 [IMP] web_decimal_numpad_dot: use the decimal_point defined in user language 2017-12-18 10:39:04 +01:00
Omar Castiñeira Saavedra 5a8ff40850 [IMP] web_decimal_numpad_dot: fixed float widget not working properly 2017-12-18 10:39:04 +01:00
oihane 04c92b6fed [IMP] web_decimal_numpad_dot: now changes . for , in floating numbers 2017-12-18 10:39:04 +01:00
oihane e41aeaf760 [ADD] New module <web_decimal_numpad_dot> 2017-12-18 10:39:04 +01:00