- 23 Jun, 2020 6 commits
-
-
Jérome Perrin authored
As a follow up of nexedi/erp5!1158 , now that stock browser supports inventory conversion, the old converted inventory report is not longer needed. The reason for removing instead of fixing is that this report was using approaches that have no equivalent in ERP5JS interface (select in the module and run a report based on selection, listbox domain tree), so we could repair it for old ui only, but we thought it would be better to remove it and improve stock browser further. One reason this was broken is that it was using `SimulationTool.getAllInventory` which does not support brain attributes from `SimulationTool.getInventoryList`, so dynamic attributes like `node_title` were not displayed correctly. This adds a warning on `getAllInventory` docstring. This method has another user so we don't remove it. See merge request nexedi/erp5!1162
-
Jérome Perrin authored
Make stock browser a dialog where user can select the node category, for compatibility with ERP5JS Introduce a preference to select the node category by default. Allow to select quantity unit / metric type in the dialog to get converted inventories. See merge request nexedi/erp5!1158
-
Jérome Perrin authored
Uploaded the content of https://github.com/nicolaskruchten/pivottable/tree/v2.23.0/dist/ using web dav and ran Alarm_checkSkinCache This version allow sorting and fixes an XSS vulnerability
-
Jérome Perrin authored
Browsers (at least chrome) saves the textarea content and restore it when going back or resurecting a closed tab, which prevents loosing unsaved work. This browser feature does not work in "rich" javascript editors, but this trick of syncronizing the rich editor content to a hidden textarea seem to makes it work.
-
Jérome Perrin authored
This is an emergency commit to repair failing tests
-
Jérome Perrin authored
use "Slideshow" for now. "Slide Show" would also be OK, the discussion about what's the best term is still ongoing, this is an emergency commit to repair tests.
-
- 22 Jun, 2020 1 commit
-
-
Jérome Perrin authored
this has been merged in erp5_officejs
-
- 19 Jun, 2020 2 commits
-
-
Romain Courteaud authored
This gadget only works in ERP5JS, as it depends on multiple ERP5JS only gadgets. Some functionnalities have not been backported for now: * image upload, which seems broken on xhtml style * test template (I was not able to trigger something from the UI) Normally, it could be possible to create an OfficeJS app with this editor.
-
Kazuhiko Shiozaki authored
This functionality is enabled only if 'trusted-proxies' configuration value is ('0.0.0.0',) by putting the following in zope.conf : trusted-proxy 0.0.0.0
-
- 18 Jun, 2020 5 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
This report have been broken for years and does not work in new UI, now that stock browser support inventory conversion this report is no longer needed.
-
Jérome Perrin authored
formulator does not seem to like generator for listfield items
-
Jérome Perrin authored
getConvertedInventoryList is deprectated and use mergeResults which does not support brain classes, so the brain.node_title was no longer correct. Use a simpler approach, same as Resource_getInventoryList ("stock browser"), ie: getFutureInventoryList to get all future stocks + getCurrentInventory and getAvailableInventory for each brain. It's a bit less efficient because we now do 2 getInventory for each line instead of 3 getInventoryList merged, but that should be enough. Also: - use float fields to format numbers properly - activate domain tree for site (instead of showing all nodes)
-
- 17 Jun, 2020 2 commits
-
-
Georgios Dagkakis authored
this 'relative_url | ascending' sort can lead to killer queries and it is of no use
-
Jérome Perrin authored
Convert the amounts in inventory list view, the movement history list views still show in movement unit for simplicity.
-
- 16 Jun, 2020 13 commits
-
-
Jérome Perrin authored
At the same time: - don't cast to int() in macro, but expect caller to pass already correctly formatted values for *_inventory - document macro like it was done for erp5_pdm_ui_test
-
Jérome Perrin authored
This was never counting movement, but the number of inventory brain that the getInventoryList should return. Document this macro and rename argument everywhere.
-
Jérome Perrin authored
-
Jérome Perrin authored
init macro cannot open the stock browser report, because some other tests are assuming that this macro remain in view mode and they can select another view. move the "select stock browser report" in a stock-browser-test specific macro
-
Jérome Perrin authored
make the node_category dialog pre-select the preferred node category
-
Jérome Perrin authored
Previously, these tests were displaying the listbox with two lines, one for source one for destination and where checking both lines at once. Now that it's possible to filter by node category (site) in renderjs as well, adjust the test to select the node categories one by one and check that the results for each line category is what we expect. Also fix a few typos
-
Jérome Perrin authored
This allows to filter the node by site in new and old interface in a consistent way. The domain tree is also removed for consistency (so that we don't have different features on new and old interface) Old UI tests have also been updated to use more meaningful macro names.
-
Jérome Perrin authored
Having this as a dialog will make it possible for user to supply some parameters. In the old UI, this was relying on domain tree to let the user select the sites they want to see, but in ERP5JS domain trees only work on list mode listboxes. Also, we have plans to make this browser more interactive, to let the user choose more parameters (section category, quantity unit for conversions etc) in the report dialog, but this was not possible in a view action.
-
Jérome Perrin authored
same as group
-
Jérome Perrin authored
-
Jérome Perrin authored
this will be used in stock report dialogs by site
-
Jérome Perrin authored
-
Jérome Perrin authored
This fixes a problem that a broken image like <img src="?quality=75.0&display=thumbnail&format=png" alt="Image"> was displayed when no image have been uploaded. This was working fine on product, this makes component aligned with product for this field.
-
- 15 Jun, 2020 8 commits
-
-
Arnaud Fontaine authored
This fixes errors such as: E: No name '_dtmldir' in module 'Products.ERP5Type' (no-name-in-module) Where _dtmldir is 'PATH/TO/Products/ERP5Type/dtml/', dynamically added to Products.ERP5Type module.
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
-
Jérome Perrin authored
Because most of the times we configure roles so that users assigned to a group can only see documents from this group, it's a better default that in reports they can only select the groups they are affected to (and the sub categories of these groups). For more complex security configurations, the script `Base_getDialogSectionCategoryItemList` can be customised. See merge request nexedi/erp5!1136
-
Jérome Perrin authored
"Split and Defer" action ![screenshot of split_and_defer transition](/uploads/2a9d4efc139b881bfec82a425996c659/image.png) functionality can be achieved with "Solve Divergences" action with a "Split and Defer" ![screenshot of solve_divergence transition choosing split and defer action](/uploads/704c4713d842455c4e369a99d8f4867a/image.png) we don't need two ways of doing the same thing. This removes the workflow transitions and the dialogs and update the tests to use the "Solve Divergences" action instead. See merge request nexedi/erp5!1148
-
Jérome Perrin authored
Main goal was to make erp5_trade 100% translated, also the divergence explanations. The result of the solve divergence dialog is: ![solve divergence dialog in french](/uploads/7ba5d3fcccb58b223471566d528c5c0a/image.png) This also fixes a few small problems with existing translations See merge request nexedi/erp5!1149
-
Jérome Perrin authored
Fix a problem with `WebPage.getImplicitSuccessorValueList`, it did not detect references such as: ``` <img src="reference"> ``` when the web page was in the context of a web site, because of some wrong relative URL calculations. See merge request !1153
-
Jérome Perrin authored
Following up !941 , use a script ( $444 ) to rewrite most of XML. The script was not so clever and skipped several cases that would be hard to implement. See merge request !1156
-
- 12 Jun, 2020 3 commits
-
-
Xiaowu Zhang authored
'NoneType' object is not iterable
-
Jérome Perrin authored
Since 05210e87 (erp5_web_renderjs_ui: add LabelField support, 2020-05-26) we have label field support, so this labelfield is no longer rendered with the fallback "read only field" gadget and markup is different. Update selector to make the test happy.
-
Jérome Perrin authored
-