- 26 May, 2021 3 commits
-
-
Jérome Perrin authored
This was never supported, we support only [state in $workflow_id] See also: https://erp5js.nexedi.net/#/bug_module/1740 b6dcbc19 (l10n_fr,l10n_jp: Fix translation of "Open", 2021-04-30) Generated from this script: #!/srv/slapgrid/slappart3/srv/runner/software/cc0326f0dcb093f56c01291c300c8481/parts/erp5/venv/bin/python import polib import sys import re pofile = polib.pofile(sys.argv[1]) msgs = dict() for entry in pofile: msgs[entry.msgid] = entry.msgstr transition_re = re.compile(r'(.*) \[transition in .*\]') fixed_messages = dict() for entry in pofile: match = transition_re.match(entry.msgid) if match: # in erp5_l10n_de some msgstr also have the [transition in ...], we drop them if transition_re.match(entry.msgstr): continue short = match.groups()[0] if short.endswith('Action'): continue if short not in msgs: print(f"
🤔 {short} not translated ( from {entry.msgid} )") fixed_messages[short] = entry.msgstr else: fixed_messages[entry.msgid] = entry.msgstr pofile.clear() for k, v in fixed_messages.items(): pofile.append(polib.POEntry(msgid=k, msgstr=v)) pofile.save(sys.argv[1]) import subprocess subprocess.check_output( [ '/opt/slapos-shared/gettext/4df93a547efd86e0eb70495b88a5d3b1/bin/msgattrib', sys.argv[1], "--no-fuzzy", "--translated", "-s", "--no-wrap", "-o", sys.argv[1] ] ) -
Jérome Perrin authored
using: msgattrib translation.po --no-fuzzy --translated -s --no-wrap -o translation.po
-
Jérome Perrin authored
translated_title is used in listbox search columns, so it's very confusing for users if they can not use the usual % character for partial matches. This changes the behaviour of translated_title to autodetect the presence of % and use LIKE comparison operator in such case.
-
- 21 May, 2021 2 commits
-
-
Jérome Perrin authored
this field did not use a (my_ / your_) prefix
-
Jérome Perrin authored
-
- 20 May, 2021 1 commit
-
- 19 May, 2021 2 commits
-
-
Lu Xu authored
-
Gabriel Monnerat authored
-
- 18 May, 2021 3 commits
-
-
Gabriel Monnerat authored
-
Georgios Dagkakis authored
with previous implementation, categories_list=[...] could be included and it would delete existing categories not included in it So use getPropertyAndCategoryList instead of propertyIds, that should return a cleaner list for input_parameter_dict here
-
Georgios Dagkakis authored
-
- 17 May, 2021 3 commits
-
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Jérome Perrin authored
-
- 12 May, 2021 4 commits
-
-
Jérome Perrin authored
2 letters code as reference, 3 letters codes as codifications
-
Jérome Perrin authored
When viewing the worklist page, a request is made to traverse portal_workflow, which translate global worklist actions including the document count. The non regression test was failing with: [u'Draft To Validate (1)'] != ['Draft To Validate'] and in real usage, several messages were added to Localizer.
-
Gabriel Monnerat authored
-
Jérome Perrin authored
We should not show a link to jump to workflow configuration to end users, these are not relevant to them and can only cause confusion.
-
- 11 May, 2021 9 commits
-
-
Romain Courteaud authored
Some erp5 view action use a TALES expression to be visible only in draft state. When validation a workflow transition dialog, ERP5JS tries to go back to the previous view which is now hidden. In such case, switch back to the default document view.
-
Romain Courteaud authored
-
Boxiang Sun authored
Do not return wrong content type
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
fixup nexedi/erp5@e21968ba
-
Jérome Perrin authored
Because we were backing up to trash documents in the wrong order (in the example from the test, portal_categories/test_category/removed_container/removed_document first and then portal_categories/test_category/removed_container), first the document was backed-up and some intermediate trash folders were created to keep the hierarchy. Then when backing up the container, there was an error like: BadRequest: The id "removed_container" is invalid - it is already in use. Similar error happens when upgrading erp5_configurator_standard, it was failing with: BadRequest: The id "officejs_sdk_workflow" is invalid - it is already in use. The fix is to backup in reverse order, to back up first the containers and then the document in containers.
-
Jérome Perrin authored
This makes it a little bit easier to understand quantity and quantity unit issues.
-
Jérome Perrin authored
Since 405ee70e (SelectionTool/Listbox: Fix in calculating the start of last page in selection, 2018-10-17) we have total_size in selection params. We don't want this to be propagated to catalog search, otherwise it cause a warning that this is an unknown catalog key.
-
- 10 May, 2021 2 commits
-
-
Jérome Perrin authored
fixup! ERP5Workflow: testPerformance: Object creation is slower so increase maximum acceptable value. 0.0062 was still too much, we had test run taking 0.0064, set the threshold to 0.0066 to be safe.
-
Jérome Perrin authored
Sequence produce lots of useless output, which makes it slow to display test result pages for tests using sequences, like testBusinesTemplate. It must also be taking a lot of disk space on the server and is generally not useful, when a test fail we have the log of the failing test.
-
- 07 May, 2021 4 commits
-
-
Jérome Perrin authored
Let's be consistent and use "Permissions" everywhere.
-
Jérome Perrin authored
See merge request nexedi/erp5!1405
-
Jérome Perrin authored
In English, "Open" means both the action of openning and the state when something is open. Several workflows have the problem that the "Open" transition is translated to something that does not describe the action, but the state. We have a mechanism to override the translation for a state, by translating `Word [{state_title} state in {workflow_id}]`, but we don't have such mechanism for transitions, so when "Word" exist both as a transition and a state, "Word" should be the translation of the transition and we should have translations in context for all the workflow states.
-
Arnaud Fontaine authored
-
- 06 May, 2021 4 commits
-
-
Jérome Perrin authored
Starting from PAS 1.10.0, assignRoleToPrincipal is private, only manage_assignRoleToPrincipals can be used from restricted python.
-
Jérome Perrin authored
-
Jérome Perrin authored
We do nothing on these methods, but we comply to the interface.
-
Gabriel Monnerat authored
-
- 03 May, 2021 1 commit
-
-
Gabriel Monnerat authored
-
- 30 Apr, 2021 2 commits
-
-
Gabriel Monnerat authored
-
Gabriel Monnerat authored
When there is a invalid field, we trigger a notification if the user tries to save the form. But, if this notification is triggered, we don't trigger an alert when the user clicks in another page to leave. But, if the field is invalid, the user does not click in "Save" and try to leave, the alarm is triggered.
-