- 25 Apr, 2016 3 commits
-
-
Vincent Pelletier authored
fixup! AccountingTransactionModule_getAccountingTransactionList: Workaround poor column mapping for reference filtering.
-
Vincent Pelletier authored
Use a single query for count and stat methods, caching the result in request (for lack of a better idea). Also, stop defining editable columns, as listbox auto-detects such fields anyway.
-
Vincent Pelletier authored
AccountingTransactionModule_getAccountingTransactionList: Workaround poor column mapping for reference filtering.
-
- 22 Apr, 2016 6 commits
-
-
Vincent Pelletier authored
node_category adds a join with catalog which tends to be preferred by query optimiser over the agrgegate relation (because there are fewer accounts than there are aggregared documents), which makes displaying a payment group proportional to the number of payments on the accoutns instead of proportional to current group's related aggregate list. Also, drop parent_portal_type condition, as payment lines aggregated to a group should be children of a Payment Transaction (and it saves one more join - although much less costly than the node_category one). Also, make aggregate relation condition strict (there should be no group sub-objects from which we would want to get related aggregates).
-
Kazuhiko Shiozaki authored
-
Aurel authored
-
Sebastien Robin authored
This allows to have a nice default behavior for isDeletable without the need to bother which arguments we can pass. Also, make isDeletable of simulation movement supporting keyword arguments to avoid failures when generic action checking isDeletable is called
-
Jérome Perrin authored
-
Jérome Perrin authored
The criterion is on indexation_timestamp, not creation date
-
- 21 Apr, 2016 12 commits
-
-
Sebastien Robin authored
business process could be acquired from parent, here we only want to select a transformation
-
Sebastien Robin authored
mrp: consumption view on production orders, use getAggregatedAmountList and avoid displaying unused variation Previous code was looking to transformation and checking object inside, but now we have getAggregatedAmountList which is able to greatly do this job. Also, do not show stock of variations we are not consuming, it could be very disturbing.
-
Vincent Pelletier authored
Also, remove orginal _getOmitQuery which was dead code, and merge _buildOmitQuery into its only remaining caller. Also, factorise two pieces of code generating omit queries.
-
Vincent Pelletier authored
- Correctly ignore parent_portal_type condition when all possible portal types are listed. This typically saves one stock-catalog join. - Expand node_category_uid into lists of node_uids. This saves one very costly stock-catalog join, as nodes member of given category should typically be the minority, inciting MySQL query optimiser to use the index materialising this join, preventing use of actual stock indexes. As there should be few nodes involved in accounting reports, listing them all and passing them to queries should not matter much. Also, add support for src__ parameter. Also, assorted coding style improvements, changes and code factorisation.
-
Vincent Pelletier authored
-
Vincent Pelletier authored
Also, simplify code a bit while reading it.
-
Vincent Pelletier authored
Fixes a bug when select_list is present in related_key_dict_passthrough but group_by_list is not. Also, reduce the number of code paths.
-
Vincent Pelletier authored
-
Vincent Pelletier authored
Also, reduces dependencies on zpt_* skin folders.
-
Vincent Pelletier authored
-
Vincent Pelletier authored
folder_contents is only used by this listbox, and is likely a mistake.
-
Vincent Pelletier authored
In MySQL, boolean columns are tiny ints with values 0 or 1, so just cast the python bool into an int.
-
- 20 Apr, 2016 1 commit
-
-
Jérome Perrin authored
This only apply for running live tests of a test component that defines multiple classes You can use for example, testStandardConfigurationWorkflow.TestStandardConfiguratorWorkflow in "Tests" field of "Live Tests" dialog to run only TestStandardConfiguratorWorkflow test class
-
- 19 Apr, 2016 2 commits
-
-
Julien Muchembled authored
Caching the current user during the transaction breaks code that changes user. getSecurityManager().getUser().getId() is anyway already so fast, and it is here called so rarely, that it's not worth caching the result.
-
Tristan Cavelier authored
-
- 18 Apr, 2016 2 commits
-
-
Tristan Cavelier authored
-
Jérome Perrin authored
-
- 15 Apr, 2016 2 commits
-
-
Sebastien Robin authored
This method is useful by some scripts of erp5_administration
-
Jérome Perrin authored
This is newer codemirror with support to jump to line keybinding https://github.com/codemirror/CodeMirror/issues/3030 /cc @isabelle I don't know if this interfere with 53a4b813 /reviewed-on !98
-
- 14 Apr, 2016 2 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
I used this procedure : git clone https://github.com/codemirror/CodeMirror.git --branch 5.13.4 cd CodeMirror # rename edit to cm_edit # see 54087b03 find . -not -path "./.git*" -type f -exec sed -i 's/addon\/edit\//addon\/cm_edit\//g' {} + git mv addon/edit addon/cm_edit git commit -a -m "ERP5: rename addon/edit -> addon/cm_edit" # upload to zope ( note that I had to mkdir addon explicitly, otherwise I had some 409 Conflicts and 500 Internal Server Error that I did not investigate) lftp http://login:password@172.17.0.2:2200/erp5/portal_skins/erp5_code_mirror/ -e 'rm -rf codemirror ; mkdir codemirror ; quit' &&\ lftp http://login:password@172.17.0.2:2200/erp5/portal_skins/erp5_code_mirror/codemirror/ -e 'mkdir addon; mput -d * */* */*/* */*/*/* ; quit ' # run portal_alarms/check_skin_cache to set http_cache
-
- 13 Apr, 2016 1 commit
-
-
Cédric Le Ninivin authored
-
- 12 Apr, 2016 9 commits
-
-
Romain Courteaud authored
[erp5_web_renderjs_ui] form_dialog: do not update navigation history if action redirect to the same document
-
Romain Courteaud authored
form_list search widget layout is like a search engine search form (text input and search button next to it)
-
Romain Courteaud authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Jérome Perrin authored
I do not see why we would need to check again that value != self.getTitle because this check is already done in edit, and edit supports edit_order and force_update.
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
following up 3d42e2b9 reference is used only when title is not defined
-