- 09 Jun, 2020 4 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
- 08 Jun, 2020 1 commit
-
-
Arnaud Fontaine authored
This should have no impact on existing code as pylint is ran on a named temporary file anyway but it avoids useless checks for relative imports and thus is slightly faster.
-
- 05 Jun, 2020 8 commits
-
-
Jérome Perrin authored
See merge request nexedi/erp5!1144
-
Jérome Perrin authored
adjust tests now that the test component itself is found by catalog.
-
Jérome Perrin authored
-
Arnaud Fontaine authored
* Import Movement Document: + Event + MailMessage + Project + ImmobilisationMovement * Imported by IMovement: + IAccountingMovement + IAmountGenerator + AmountGeneratorMixin + AmountGeneratorLine + IAssetMovement + IProductionMovement * Used by MovementGeneratorMixin: + IMovementGenerator + IMovementList Also, define providesI<INTERFACE_NAME>() on Base class for migrated Interfaces as these needs to be available before bt5 containing the ZODB Component Interfaces are upgraded (see also c86107bf). Otherwise, testUpgradeInstanceWithOldDataFs fails as z_catalog_item_list (newActiveProcess() from upgrader) calls providesIMovement().
-
Arnaud Fontaine authored
This also moves ImmobilisationItem and its interface from erp5_immobilisation to erp5_core as ImmobilisationDelivery import them.
-
Arnaud Fontaine authored
* Discount: Portal Type actually uses Resource Document.
-
Jérome Perrin authored
We were only checking if the defaut charset or default collation were same, but if anything is different in the table options, we should update it. Also add a missing test for updating column comment
-
Jérome Perrin authored
Not a proper tool to search source code, but makes it possible to search for source code in component.
-
- 04 Jun, 2020 1 commit
-
-
Romain Courteaud authored
-
- 03 Jun, 2020 10 commits
-
-
Georgios Dagkakis authored
test_apply_model_filled_computer_batch_mode did not pass batch_mode and was wrongly checking that result is True Test was passing, because without batch_mode Computer_applyComputerModel returns Base_redirect, so the result is indeed evaluated as True. Yet in this case we should expect False, since no changes are applied
-
Łukasz Nowak authored
-
Jérome Perrin authored
this is required for stock browser to work in ERP5JS with Component portal type
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
and make it possible to create the test delivery using a component as resource
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Vincent Pelletier authored
Do it once, after any business template deletion and install happened.
-
- 02 Jun, 2020 5 commits
-
-
Jérome Perrin authored
Several bug fixes for business template update bugs, including a fix for the problem preventing to update erp5_accounting_l10n_fr See merge request !1112
-
Vincent Pelletier authored
-
Jérome Perrin authored
These new versions contain several small improvements. It seems this version of prettier formats javascript in a way that jslint does not complain about. Also contain some small fixes for our renderjs and rsvp type definitions, so that monaco-editor-gadget.js can typecheck. See merge request nexedi/erp5!1139
-
Jérome Perrin authored
* "Create Skin Folder" action had a typo, so it was not setting the `business_template_skin_layer_priorty` property that business template is using when installing. * "Create Report" was not updated for the new "action title" feature of forms. This time, add the missing tests that should have prevented these problems. See merge request nexedi/erp5!1133
-
Jérome Perrin authored
Enable coding style on erp5_forge, after removing several problematic scripts that did not seem used. See merge request nexedi/erp5!1134
-
- 01 Jun, 2020 11 commits
-
-
Jérome Perrin authored
This is not supposed to happen and can hide errors.
-
Jérome Perrin authored
This addresses the problem of https://nexedijs.erp5.net/#/bug_module/20180719-135FAA8 a KeyError raised when some categories in a subtree are modified and some are removed and the corresponding base category is also installed as a base category. The problem was that both CategoryTemplateItem, which is in charge of updating the base category and PathTemplateItem, which is in charge of updating the categories listed as path both use the same ObjectTemplateItem.install method, with the same object_to_update dict. ObjectTemplateItem.install uninstall all objects that are listed in object_to_update and not in self._objects so something like this happened when business template from test_update_business_template_with_category_having_subcategory_tree_modified is updated: 1. PathTemplateItem.install is called for the base category, portal_categories/test_category/modified/removed looks removed, so it is backed up. Because the the parent paths are not parts of self._objects, trash tool will create simple trash folder for portal_categories/test_category/modified 2. PathTemplateItem.install is called for the paths, portal_categories/test_category/modified is modified, so the previous version will be backed up. At this point trash tool looks in the trash bin and the path for portal_categories/test_category is already present, so trash tool sees that path exists and does not return subobjects, so after portal_categories/test_category/modified is modified, the subjects such as portal_categories/test_category/modified/container_in_which_child_is_added are not restored and creating 'added' caused a KeyError('container_in_which_child_is_added') The approach is to make CategoryTemplateItem.install only consider base categories - ie. objects where path is portal_categories/* and not the subobjects, because they don't belong to CategoryTemplateItem but to PathTemplateItem. Co-authored-by:
Georgios Dagkakis <georgios.dagkakis@nexedi.com>
-
Jérome Perrin authored
Business template have some logic to keep uids when updating objects: during installation, when an object is modified, business template first remember the uids for this object and all its sub-objects, replaces this object with the new version then recursively set the uid on updated objects, so that updating an ERP5 document by business template does not change its uid because this would break catalog. When an object containing sub-objects is updated, it becomes a new object in ZODB and sub-objects of the previous object are set as child of the new object. This works even if the case of sub-objects being instances of ZODB Broken class, except that the step where we restore the uid fail as it's not allowed to modify a broken object. Instead of unconditionnally setting the sub-objects uids, check that we actually need to set it, because if it's already the expected value then we don't need to touch the object.
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
In monaco 0.20.0 "peek references" is not properly displayed when automaticLayout is true. This is fixed on master branch so next release should be OK. For now, use a resize event handler to re-layout the editor when size change, then we don't need the automaticLayout.
-
Jérome Perrin authored
document.body is accessed very early in scripts loading, in https://github.com/microsoft/vscode/blob/c6e3a94892eaccbce9995ee02a06febec5492fec/src/vs/editor/contrib/suggest/suggestRangeHighlighter.ts#L106 if we leave body after head, for some reason document.body is null here and loading fail, which leaves an editor where things like Ctrl+Space does not trigger completions Moving body before head is just a workaround, but that was code was removed in https://github.com/microsoft/vscode/commit/f913854bd66362a1350ea43c305ad92c151796bf hopefully when we update to monaco > 0.20.0 that won't be needed again.
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
- Promise signature is different, we have canceller - delay was missing - Queue.push signature was incorrect
-
Jérome Perrin authored
Using https://lab.nexedi.com/jerome/monaco-editor-erp5/ at revision f59a79d15b7cfbb2f76d53fc01d2aab8e9316d40 and running: npm install npm run deploy -- --url=http://host:port/erp5/portal_skins/erp5_monaco_editor/monaco-editor --username=user --password=password then use ERP5Site_setSkinCache to set cache
-