erp5:94db42159ce41f3cf7ad285d04d372948064dcb0 commitshttps://lab.nexedi.com/nexedi/erp5/-/commits/94db42159ce41f3cf7ad285d04d372948064dcb02021-01-22T13:11:07+01:00https://lab.nexedi.com/nexedi/erp5/-/commit/94db42159ce41f3cf7ad285d04d372948064dcb0erp5_trade: use new getAggregatedAmountList API in Base_getSpecialisedAggrega...2021-01-22T13:11:07+01:00Kazuhiko SHIOZAKIkazuhiko@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/9f1b0df3287238bacfb17c3933a087a213729bc5erp5_accounting_renderjs_ui_test: fixup handle non editable parallellistfields2021-01-20T18:02:42+01:00Romain Courteaudromain@nexedi.com
See <a href="https://lab.nexedi.com/nexedi/erp5/commit/6c4f76000cf995bd1f0c650395670cc1264175e3" data-original="https://lab.nexedi.com/nexedi/erp5/commit/6c4f76000cf995bd1f0c650395670cc1264175e3" data-link="false" data-link-reference="true" data-project="1" data-commit="6c4f76000cf995bd1f0c650395670cc1264175e3" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="erp5_web_renderjs_ui: handle non editable parallellistfields" class="gfm gfm-commit has-tooltip">nexedi/erp5@6c4f7600</a>https://lab.nexedi.com/nexedi/erp5/-/commit/a237ef9c3f65fb433ca18b90cf9969e0801c716cWebSite_logout: Further reduce diff with erp5_core's logout.2021-01-20T16:51:28+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/bd1b6f9eac6a8c660bc8b745cedafc630a69b715ERP5TypeFunctionalTestCase: Rely on field ids rather than names.2021-01-20T16:35:26+09:00Vincent Pelletiervincent@nexedi.com
Allows to keep UI tests working independently of the login process
implementation details.https://lab.nexedi.com/nexedi/erp5/-/commit/f371918138d396ad2c7d157718b68c96445c5b00WebSite_logout: Catch up with erp5_xhtml_style's logout.2021-01-20T16:35:00+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/c27f19d051c7d8c487e85baa302b48ace0350945WebServiceTool_viewConnectorList/listbox: Display connector title.2021-01-20T16:35:00+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/c6a6c8625e3e298d8cd35129c3c58c13f2f38587fixup! erp5_web_renderjs_ui: try to get a more precise float value on all pla...2021-01-19T09:09:18+00:00Kazuhiko SHIOZAKIkazuhiko@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/dc863abc3139a566d6d695cd5b901d386686565bRevert "fixup! erp5_web_renderjs_ui: Improve fields to propagate error_text"2021-01-19T09:08:34+00:00Kazuhiko SHIOZAKIkazuhiko@nexedi.com
This reverts commit <a href="/tomo/erp5/-/commit/e5c160bcaa96919ef22dd4ee4061d8570250bc7b" data-original="e5c160bcaa96919ef22dd4ee4061d8570250bc7b" data-link="false" data-link-reference="false" data-project="850" data-commit="e5c160bcaa96919ef22dd4ee4061d8570250bc7b" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="fixup! erp5_web_renderjs_ui: Improve fields to propagate error_text" class="gfm gfm-commit has-tooltip">e5c160bc</a>.https://lab.nexedi.com/nexedi/erp5/-/commit/e5c160bcaa96919ef22dd4ee4061d8570250bc7bfixup! erp5_web_renderjs_ui: Improve fields to propagate error_text2021-01-19T08:59:56+00:00Kazuhiko SHIOZAKIkazuhiko@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/0b75935d16fe189e0c3806d7ca144d05e79231cderp5_accounting: Add also string_index to the list of copied properties2021-01-19T06:55:19+00:00Georgios Dagkakisgeorgios.dagkakis@nexedi.com
in API script AccountingTransaction_createReversalTransactionhttps://lab.nexedi.com/nexedi/erp5/-/commit/307470e22e7360d71f1e0ec912dc08f389a33c37accounting: Fix timezone issues when checking periods are consecutive2021-01-19T06:09:12+01:00Jérome Perrinjerome@nexedi.com
Opening an accounting period is refused if the start date of the period
is more than one day after the stop date of the previous period, but this
check did not take into account that "next day" might be more than 24
hours, like it's the case when daylight saving happen between these dates.
Instead we check that the difference is less than 1.9 days.
Reorganise tests to group accounting period related tests in a dedicated
test class and add missing tests for period validation checks.
Also fix a few race conditions with catalog indexing that are probably not
a problem in real life but were revealed by the test.https://lab.nexedi.com/nexedi/erp5/-/commit/a016ed0439161aea736c569716635136d4744de4CMFActivity: Optimise validation queries.2021-01-18T10:42:09+09:00Vincent Pelletiervincent@nexedi.com
See SQLBase._getExecutableMessageSet for operation principle.
Removes the notion of order_validation_text: activity validation is no
longer evaluated per-activity , but per-dependency for multiple activities
at a time. In this context, order_validation_text does not make sense as
it flattens all dependency types for a given activity.
Rework activity-dependency-to-SQL methods: use a dict rather
dynamically-generated method names.
Based on initial work by Julien Muchembled.https://lab.nexedi.com/nexedi/erp5/-/commit/f09e1a3667c27ac8b22e7defaff2dd2a1ec4d1b2CMFActivity.Activity.SQLBase: Properly release reserved messages when load ra...2021-01-18T10:42:09+09:00Vincent Pelletiervincent@nexedi.com
Seen happen on SQLDict with 94 indexation activities being stuck assigned
to a processing node on which load failed because of an SQL deadlock.https://lab.nexedi.com/nexedi/erp5/-/commit/5c0a852e9e5de596e21a0dfddb8c00ded13f76adweb_renderjs_ui: update comments about the reason for not using cache.addAll2021-01-14T06:45:59+01:00Jérome Perrinjerome@nexedi.com
The main reason for not using cache.addAll was to fill the cache as a low
priority task, not to generate too much traffic, the safari compatibility
was secondary. Now that safari seems to support cache.addAll, remove the
comment about safari.https://lab.nexedi.com/nexedi/erp5/-/commit/9b38dca83613a29d73a642565bcf995f2758ebadinclude Components checkConsistency in coding style2021-01-14T06:42:58+01:00Jérome Perrinjerome@nexedi.com
Components also have some extra checks in checkConsistency, we should
include this in coding style test.
See merge request <a href="/nexedi/erp5/-/merge_requests/1324" data-original="nexedi/erp5!1324" data-link="false" data-link-reference="false" data-project="1" data-merge-request="4453" data-project-path="nexedi/erp5" data-iid="1324" data-mr-title="include Components checkConsistency in coding style" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">nexedi/erp5!1324</a>https://lab.nexedi.com/nexedi/erp5/-/commit/b90971016a9b26f0a51720b4e0fdc74ee2062ba1xhtml_style/authentication_policy: merge "logged_in" implementation2021-01-14T06:41:56+01:00Jérome Perrinjerome@nexedi.com
This simplify code and also bring the functionnality of <a href="/georgios.dagkakis/erp5/-/commit/c484f8aa204223c331502cece75329cf6dfb3d29" data-original="c484f8aa20" data-link="false" data-link-reference="false" data-project="201" data-commit="c484f8aa204223c331502cece75329cf6dfb3d29" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="erp5_xhtml_style Base_cancel and logged_in: do not allow redirection outside ERP5 site." class="gfm gfm-commit has-tooltip">c484f8aa</a>
(erp5_xhtml_style Base_cancel and logged_in: do not allow redirection outside
ERP5 site., 2016-02-12) for the cases where authentication_policy is
installed.
This also fixes a problem with translations of "Your password will expire at
{date}", which was using different messages for every possible date.
Tests needed to be updated because we now redirect with properly URL encoded
parameters.https://lab.nexedi.com/nexedi/erp5/-/commit/40cfe242c166334c7eeaa757e754416a2b50fd1cerp5_web_renderjs_ui: fixup invalid class selector2021-01-13T10:15:33+01:00Romain Courteaudromain@nexedi.com
See <a href="https://lab.nexedi.com/nexedi/erp5/commit/ea219b746f32e972532ce1b3bcb9680dbc9110b6" data-original="https://lab.nexedi.com/nexedi/erp5/commit/ea219b746f32e972532ce1b3bcb9680dbc9110b6" data-link="false" data-link-reference="true" data-project="1" data-commit="ea219b746f32e972532ce1b3bcb9680dbc9110b6" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="erp5_web_renderjs_ui: Improve fields to propagate error_text" class="gfm gfm-commit has-tooltip">nexedi/erp5@ea219b74</a>https://lab.nexedi.com/nexedi/erp5/-/commit/6c4f76000cf995bd1f0c650395670cc1264175e3erp5_web_renderjs_ui: handle non editable parallellistfields2021-01-13T10:15:33+01:00Romain Courteaudromain@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/4fbd2845007365a26eb7d91c96a29f2bd844429aerp5_web_renderjs_ui: fixup: do not hide potential errors2021-01-13T10:15:32+01:00Romain Courteaudromain@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/6fe073d85bea7809e50a545c8915004cbb71a928erp5_officejs/erp5_travel_expense: replace deprecated url2021-01-13T10:15:32+01:00Romain Courteaudromain@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/07c353d852d8b25246632230f427cd9ead2bfe76erp5_xhtml_style: remove the bottom toolbar of readonly ckeditor2021-01-13T10:15:23+01:00Romain Courteaudromain@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/417fa680d73dbc736dca157f64c29a2e90635620erp5_xhtml_style: remove the top toolbar of readonly ckeditor2021-01-13T10:15:06+01:00Romain Courteaudromain@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/b2aac9010e21dca6b3db3915de8db1ba89f9501fCMFActivity.tests: Fix serialization_tag + group method test.2021-01-13T14:29:05+09:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/4ea056c76c4551f4c66b854bd25cd6905b9316c9ZMySQLDA etc.: support mysqlclient >= 1.4.0.2021-01-12T10:53:44+00:00Kazuhikokazuhiko@fdiary.nethttps://lab.nexedi.com/nexedi/erp5/-/commit/0c97582c06a767c8878efbf0faf108bbae206ee3CategoryTool: reduce needless call of _removeDuplicateBaseCategoryIdInCategor...2021-01-12T10:52:52+00:00Kazuhiko Shiozakikazuhiko@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/636a88365b612a11937f8c67bed9348177edfe81CategoryTool: remove dead code.2021-01-12T10:52:48+00:00Kazuhiko Shiozakikazuhiko@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/562a8f85d45e314409f2f8fa4a1a731e9f9529f9CMFActivity: unhardcode -2 and -10.2021-01-12T10:51:40+00:00Kazuhiko Shiozakikazuhiko@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/2419299d49854977978f317f05555722b87bbfaaerp5_web_renderjs_ui: fix history previous in case of no history and no jio_key2021-01-11T11:28:13+01:00Romain Courteaudromain@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/54a73770eb9d75f04fb1f6ea8a2a2ba60118b232erp5_web_renderjs_ui: copy the router sticky parameters when displaying an er...2021-01-11T11:28:13+01:00Romain Courteaudromain@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/a49372cd9319c54a7f4cfdfb777d3655aac81c9derp5_forge: set remote_url value2021-01-08T14:39:19+01:00Romain Courteaudromain@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/b29059a6e6bcbb0e98b59465b957d3458342dd00base: typo in "Password does not comply with password policy" error message2021-01-08T02:56:54+01:00Jérome Perrinjerome@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/28ef472402ea0e063b141c68180e706330ff1a7bauthentication_policy: fix UnicodeDecodeError with invalid password messages2021-01-06T09:44:47+01:00Jérome Perrinjerome@nexedi.com
When new password does not match policy, in reset password and change
password dialogs, we used u' '.join([str(message) ...]) to join all
translated messages in a string, but this construct will decode the
str(message) to unicode using ascii, so it will fail when these messages
contain some multi bytes characters.
Extend test coverage to check that these dialogs uses translations and use
non ascii messages in the tests, to make sure we don't have regressions
with this issue.https://lab.nexedi.com/nexedi/erp5/-/commit/0aeea3c4778b8b108438600ce439b8d918638393Validation message translation2021-01-06T08:36:45+01:00Georgios Dagkakisgeorgios.dagkakis@nexedi.com
See merge request <a href="/nexedi/erp5/-/merge_requests/1001" data-original="nexedi/erp5!1001" data-link="false" data-link-reference="false" data-project="1" data-merge-request="3473" data-project-path="nexedi/erp5" data-iid="1001" data-mr-title="Validation message translation" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!1001</a>https://lab.nexedi.com/nexedi/erp5/-/commit/1b11dd03a150e4f2bbd98e8c1088235651e15475erp5_base: drop create_user_action2021-01-06T02:07:02+01:00Tristan Caveliertristan.cavelier@nexedi.com
ERP5 does not handle user "account" anymore, it handles "login".
Please use "Add ERP5 Login" or any other login you need instead.
See discussions on <a href="https://lab.nexedi.com/nexedi/erp5/merge_requests/547" data-original="https://lab.nexedi.com/nexedi/erp5/merge_requests/547" data-link="false" data-link-reference="true" data-project="1" data-merge-request="1741" data-project-path="nexedi/erp5" data-iid="547" data-mr-title="WIP: erp5_base: drop create_user_action" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">nexedi/erp5!547</a>https://lab.nexedi.com/nexedi/erp5/-/commit/8d634e0f34f3a3be9e23016025e14dad5c10e7c2Fix run_my_doc coding style2021-01-06T02:03:21+01:00Jérome Perrinjerome@nexedi.com
Enable coding style on erp5_run_my_doc since it now gets installed with erp5_officejs
See merge request <a href="/nexedi/erp5/-/merge_requests/1325" data-original="nexedi/erp5!1325" data-link="false" data-link-reference="false" data-project="1" data-merge-request="4454" data-project-path="nexedi/erp5" data-iid="1325" data-mr-title="Fix run_my_doc coding style" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">nexedi/erp5!1325</a>https://lab.nexedi.com/nexedi/erp5/-/commit/4e12f94c58e6aa2c884b42815a3e58367ec9dc31erp5_hal_json_style: Make sure that field error messages are translated2021-01-05T06:52:02+01:00Georgios Dagkakisgeorgios.dagkakis@nexedi.com
in case the message is defined in the field ('manage_messagesForm' tab)https://lab.nexedi.com/nexedi/erp5/-/commit/8ba9a1e2a08921c5511e0ea5a3f6a3364b35b42cerp5_xhtml_style: Do not translate field error message by default2021-01-05T06:52:02+01:00Georgios Dagkakisgeorgios.dagkakis@nexedi.com
instead use ValidationError.getMessage APIhttps://lab.nexedi.com/nexedi/erp5/-/commit/833cb3ad479c6bbdfcee101213a46aff0d4d15f1Formulator: Allow translation of ValidationError messages2021-01-05T06:52:02+01:00Georgios Dagkakisgeorgios.dagkakis@nexedi.com
Depending on how the message is defined.
Before this commit, translation happened typically in higher level,
where the error message was rendered.
but this imposed translation in everything, including mapped messages,
pulluting Localizer with unneeded messages.
This commit introduces getMessage, the logic is:
- If the message is defined in the code that raises, then it should be translated there
- If the message is defined in the field (in 'manage_messagesForm')
then we need to translate in ValidationError class. Caller should
pass translation_service, because we do not want to import it in Formulatorhttps://lab.nexedi.com/nexedi/erp5/-/commit/fbb90c1a2eeadd897c2bdd52610f993de6cd72b4erp5_web_renderjs_ui: use domsugar instead of DOM API in launcher gadget2021-01-04T14:01:45+01:00Gabriel Monneratgabriel@nexedi.comhttps://lab.nexedi.com/nexedi/erp5/-/commit/25ce6bb70af86688d02209e9d713c47008006eederp5_web_renderjs_ui: use the field description as tooltip2020-12-30T15:47:07+01:00Romain Courteaudromain@nexedi.com
Like xhtml style