- 11 Jul, 2024 40 commits
-
-
Arnaud Fontaine authored
And the Product was removed in recent ERP5 SR.
-
Jérome Perrin authored
This patch seems not needed
-
Jérome Perrin authored
-
Jérome Perrin authored
This is in SyncMLUtils
-
Jérome Perrin authored
Now this is defined from new workflows, we no longer need the DCWorkflow version
-
Jérome Perrin authored
This was only useful during the transition to ERP5 Workflow, now that workflows are migrated, Category API (setDestination) is more natural, so there's no reason to keep this patch
-
Jérome Perrin authored
Test setup monkey-patched some function which we removed when merging Zope4 support. This function was used in translationContext, it was working fine in the tests, because the function was here thanks to the monkey-patch, but it failed with ImportError when used for real. This fixes the import to use the real getRequest and drop the patch to prevent similar problems.
-
Jérome Perrin authored
According to https://www.legifrance.gouv.fr/codes/article_lc/LEGIARTI000027804775/ ValidDate is the date when the transaction was validated ( "16. La date de validation de l'écriture comptable"), this implementation was simply returning the modification date, which was not always correct, for example after causality state was recaculated. This keeps the `getModificationDate` fallback for cases where FEC is used with some non validated transactions, in order to keep compatibility
-
Romain Courteaud authored
-
Jérome Perrin authored
Using unicode with a catalog key or related key got broken in the merge of zope4 support, but using unicode on a translated key (such as translated_portal_type or translated_validation_state_title) was not working before.
-
Jérome Perrin authored
-
Jérome Perrin authored
it supports text, but unless they have non-ASCI characters, so it's better to always pass bytes.
-
Jérome Perrin authored
In original Products.ZSQLMethods, this is text, we want to keep the same semantics and encode only at a lower level.
-
Jérome Perrin authored
MySQLdb's string_literal is a method from the C API and the name is not natural for python programmers, because it manipulates bytes. It supports str, unless they have non ASCII characters, so it's better to always pass bytes. On python2, this change repairs a regression visible when searching catalog with translated related keys. This regression was introduced in the merge of zope4 support, more specifically with 610972af (py3: Update Shared.DC.ZRDB.{sqltest,sqlvar} monkey patches., 2022-04-16), because with the new version of the patches this method gets passed unicode strings, which is fine, unless they contain non ASCII characters.
-
Jérome Perrin authored
This reverts commit 149fdd1d. This did not support the case of updating old emails for which url_string was set, it was setting coordinate_text and causing emails to have two properties ( url_string to the old value and coordinate_text to the new value ). See discussion on nexedi/erp5@149fdd1d (comment 180744)
-
Jérome Perrin authored
- make the editor bigger - use monospace font for params
-
Jérome Perrin authored
This can happen with cross origin document, when using open on another domain. In that case selenium crashes and the test never finishes, this allows selenium to finish and report the error.
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Jérome Perrin authored
With 12f110d4 (testTableStructureMigration: update test after mariadb 10.3.38, 2023-02-22) we changed the test to support mariadb >= 10.3.38 but it broke the test under 10.3.35. This makes the test support both 10.3.35 and 10.3.38.
-
Kazuhiko Shiozaki authored
-
Jérome Perrin authored
We now must use Zope4 to export business templates to commit on ERP5 master branch
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Vincent Pelletier authored
-
Vincent Pelletier authored
Duplicating the id is bad. Checking the meta_type is not perfect, but it is one step better.
-
Jérome Perrin authored
Updating pandas to 0.24.2 revealed as : File "develop-eggs/astroid-1.3.8+slapospatched001-py2.7.egg/astroid/raw_building.py", line 360, in _set_proxied return _CONST_PROXY[const.value.__class__] KeyError: <type 'numpy.ufunc'> when linting code referencing pandas. The problem is actually with some numpy `ufunc`, such as numpy.sin, but we don't seem to have code using it in the test suite.
-
Gabriel Monnerat authored
Creating Stripe Payment Session and HTTP Exchange in the same transaction can raise conflict errors and when it happens, we already created the session on the Stripe side. With this, when this happens, we receive one useless webhook to inform that the session has expired. Also, batch_mode was removed because we only use it in tests. The tests were updated to use like in production.
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
erp5_core: remove Guard Role field in Worklist_view, as it should be defined in predicate listbox at the bottom.
-
Jérome Perrin authored
This listbox can be used to show documents that user is not allowed to access, so this `cell/getId` can raise. In Zope2 it was raising Unauthorized and this Unauthorized was catched, on Zope4 it is raising NotFound, which is no longer catch since 850e436e ( Products.ERP5Form.Form: Let NotFound exceptions propagate during rendering, 2022-11-25), so this NotFound was raised as a site error, which caused an error in the test.
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
-
Jérome Perrin authored
Only the most used forms are updated
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-