Commit Graph

51116 Commits

Author SHA1 Message Date
Valentin Benozillo e8542950cf erp5_insolvency_proceeding: Hide fields which define listbox column 2020-03-05 16:26:53 +01:00
Valentin Benozillo 1ef9d4ed17 erp5_insolvency_proceeding: Add Acquire Local Roles for Claim Declaration Line 2020-03-05 13:18:59 +00:00
Valentin Benozillo 0a4b94fb0a erp5_insolvency_proceeding: Change claim declaration insolvency listbox total price column 2020-03-04 10:22:43 +00:00
Sven Franck 52945d02b4 erp5_corporate_identity_test: update slide expected image 2020-03-03 13:55:56 +01:00
Sven Franck 7f60c12fce erp5_corporate_identity: improve slide render 2020-03-03 13:55:56 +01:00
Valentin Benozillo f6efb74310 Change insolvency proceeding type to display translated title 2020-03-03 12:26:40 +01:00
Valentin Benozillo 9a22df66d2 Revert "erp5_insolvency_proceeding: Add creditor organisation in module view"
This reverts commit ba158a7916.
2020-03-03 12:24:05 +01:00
Valentin Benozillo 52c5b29f71 erp5_insolvency_proceeding: Change insolvency proceeding & claim declaration view
Add total price to claim declaration.
Format the date.
2020-03-03 12:21:07 +01:00
Valentin Benozillo ba158a7916 erp5_insolvency_proceeding: Add creditor organisation in module view
Change also insolvency proceeding type to display translated title
2020-03-03 08:33:22 +00:00
Valentin Benozillo 2111f2a86d erp5_base: Add stop date to insolvency proceeding lisbox
Add stop date to insolvency proceeding lisbox in Person / organisation financial information tab.
2020-03-03 08:09:47 +00:00
Valentin Benozillo 8da9195212 erp5_base: Change insolvency proceeding type column to display translated title
insolvency proceeding type column in Insolvency proceeding listbox Person / Organisation, financial information tab, display translated title.
2020-03-03 07:35:57 +00:00
Romain Courteaud 17ed9f49a4 erp5_hal_json_style: cast select_list before handling group_by 2020-03-02 11:01:29 +01:00
Romain Courteaud 6f4e39056d [erp5_web_renderjs_ui] Add domsugar lib 2020-03-02 11:01:29 +01:00
Romain Courteaud 407522f361 erp5_project: this action only for erp5js 2020-03-02 11:01:28 +01:00
Valentin Benozillo b3c084e887 erp5_base: Add state to insolvency financial tab listbox 2020-03-02 09:20:24 +00:00
Vincent Pelletier 70122fa8cf erp5_web: Fix StaticWebSection support for VirtualHostMonster.
There are 2 shemes for VIRTUAL_URL_PARTS:
- 2-tuple with SERVER_URL and subpath
- 3-tuple with SERVER_URL, vh path and subpath
This code only supported the 2-tuple version, add support for the 3-tuple
version.
2020-03-02 16:24:48 +09:00
Georgios Dagkakis 0a7dd545cf erp5_insolvency_proceeding: set permissions on claim_declaration_simulation_workflow states 2020-02-28 10:59:04 +01:00
Vincent Pelletier 50c48dbd8c ERP5Type.mixin.ResponseHeaderGenerator: New class.
Make ERP5Type.Base and ERP5.ERP5Site inherit from it.
2020-02-28 17:33:47 +09:00
Vincent Pelletier 133d6655da ERP5Type.Core.Folder.Folder: Inherit from our classes first.
Allows Base to consistently override methods which are also overridden in
CMF where CMF implementation does not propagate the call to other
superclasses (ex: __before_publishing_traverse__ as of CMFCore-2.2.10).
Also allows simplifying several inheritance fixups.
Also, use super() instead of explicit resolution to Base.

Also: testBusinessTemplate: drop dead monkey-patch.
_getCopy is called during BusinessTemplate installation, but not the one
on this class. Which prevents reordering class inheritance between
SimpleItem and copy support classes.
So this is dead code which is not even explaining what it is trying to do
(ex: what document should it really not be called on ? what effect of this
method is undesired ? why is the method attached to this class ? why is
the cleanup restoring the original method, when this class does not have
this method to begin with but it merely gets it from its superclasses
which are re-inherited from by documents hence overriding it anyway ?,
and it is getting in the way of reordering class inheritance so it goes
away.

Also: ERP5Type.patches.CMFBTreeFolder: Fold patch onto ERP5Type.Core.Folder.
All ERP5UI-visible (hence needing to call allowedContentTypes) BTReeFolder2
instances should already inherit ERP5Type.Core.Folder, removing the need
for this monkey-patch.
2020-02-28 17:33:47 +09:00
Georgios Dagkakis be6f87b28a erp5_l10n_fr: Add claim declaration translation 2020-02-27 17:14:59 +01:00
Valentin Benozillo 4d0436ac38 erp5_crm: Add judicial representative role preference 2020-02-27 10:17:56 +01:00
Valentin Benozillo bfe7bb940b erp5_property_sheets: Add judicial representative role preference 2020-02-27 10:17:56 +01:00
Valentin Benozillo 900c215700 erp5_insolvency_proceeding: Add Claim Declaration Module 2020-02-27 10:17:56 +01:00
Valentin Benozillo dd2fa48843 erp5_insolvency_proceeding: Add Insolvency Proceeding property sheet 2020-02-27 08:59:20 +00:00
Xiaowu Zhang 21263f4bf8 erp5_l10n_fr: add more translations 2020-02-26 14:08:58 +01:00
Xiaowu Zhang 4e24705443 erp5_payroll_l10n_fr&erp5_payroll_l10n_fr_test: update tests 2020-02-26 14:08:58 +01:00
Xiaowu Zhang 5870e52150 erp5_payroll_l10n_fr: improve payslip
1. allow user to define custom value in dialog
2. fix rounding issue for total value
3. improve view
2020-02-26 14:08:58 +01:00
Jérome Perrin 1b5c24dfc1 accounting_l10n_fr_pca: fix "add new accounts from 2018"
The category titles were missing

/reviewed-on https://lab.nexedi.com/nexedi/erp5/merge_requests/1065
2020-02-26 12:29:36 +01:00
Jérome Perrin e296c0bfa7 accounting_l10n_fr_pca: swap 870 and 875 titles
In
https://www.associations.gouv.fr/IMG/pdf/reglt_2018-06_association.pdf (
from 2018 and applicable currently), it's written "870 dons en nature"
and "875 Bénévolat".

Eventhough in other documents from this official web site, it's still
the opposite:

 * https://www.associations.gouv.fr/IMG/pdf/plan_comptable_assoc.pdf
(from 2004) have in page 9:

> Répartition par nature de ressources
>
> 870 – Bénévolat
>
> 871 – Prestations en nature
>
> 875 – Dons en nature

 * https://www.associations.gouv.fr/IMG/pdf/benevolat_valorisation_comptable2011.pdf page 8:

> ➛ au crédit du compte « 870. Bénévolat », la contribution ;

Most of google searches yield "875 dons en nature" / "870 Bénévolat",
but let's follow this newer document.

/reviewed-on https://lab.nexedi.com/nexedi/erp5/merge_requests/1064
2020-02-26 01:28:27 +01:00
Jérome Perrin ecc2097e5f accounting_l10n_fr_pca: add new accounts from 2018
Add missing ones from
RÈGLEMENT N° 2018-06 du 5 décembre 2018
LIVRE III – TENUE, STRUCTURE ET FONCTIONNEMENT DES COMPTES
Titre II – Nomenclature des comptes
Art. 320-2

/reviewed-on https://lab.nexedi.com/nexedi/erp5/merge_requests/1060
2020-02-25 05:37:09 +01:00
Jérome Perrin e37e1288cb Activity Family for deferred style
Example configuration:

from `portal_activities/manageLoadBalancing`:

![image](/uploads/11e614bf8723e3cb81c7bac714a383b7/image.png)

in preferences:

![image](/uploads/9f8691ac140aab45904b98ce46aa11b4/image.png)

This way when users request lots of reports we always have at least one activity node to process other activities. ( document_conversion is a fictional example at this point )

/reviewed-on https://lab.nexedi.com/nexedi/erp5/merge_requests/1057
2020-02-25 05:37:03 +01:00
Jérome Perrin c27b84a42d Enable coding style for erp5_xhtml_style
/reviewed-on https://lab.nexedi.com/nexedi/erp5/merge_requests/1048
2020-02-25 05:36:57 +01:00
Jérome Perrin 159daa1498 hal_json_style: support a custom status message/level on edit
This allow edit scripts or interactions to change the status message or
the status level using the same way as workflow scripts: script can set
the status text in request['portal_status_message'] and the status level
in request['portal_status_level'].

Note that part of this was already checked in accidentally in 97c40dcb

/reviewed-on https://lab.nexedi.com/nexedi/erp5/merge_requests/1052
2020-02-25 05:36:54 +01:00
Vincent Pelletier 0b4fe9952f ERP5Type.patches.User: Scope role cache per user id.
When running test.erp5.testHalJsonStyle live tests, the same transaction
seems to be seeing two different users. This cause an incorrect cache hit
with the second user, which then retrieves values computed by & for the
first user.
Fix this by scoping the cache by user id, causing different cache entries
to be used.
2020-02-21 19:31:10 +09:00
Jérome Perrin e8674e7853 xhtml_style: fix pylint errors and enable coding style 2020-02-20 10:07:59 +01:00
Jérome Perrin ffa46bfd9c xhtml_style: update fckeditor to comply with coding style
Because this old editor field is deprecated in favor of the new gadget
based CKEditor, this is the minimum to get coding style test passing.

 - disable pylint
 - re-export with new extensions (.obj -> .bin)
2020-02-20 10:07:58 +01:00
Jérome Perrin 64613625b0 CodingStyle: ignore wrongly named skins from erp5_xhtml_style 2020-02-20 10:07:56 +01:00
Valentin Benozillo 360acab24d erp5_base: Change CRM proxy field to generic ones 2020-02-20 08:16:39 +00:00
Arnaud Fontaine 406e48edba testBusinessTemplate: When one Unit Test failed, subsequent tests were failing too as objects remained. 2020-02-20 14:57:05 +09:00
Arnaud Fontaine 6dc5e1cb1f ZODB Components: BusinessTemplate: Products.ERP5Type.Base will never be migrated (InitGhostBase) so ignore it when migrating source files from FS. 2020-02-20 14:57:04 +09:00
Arnaud Fontaine 7d34f0325e ZODB Components: Keep a reference of Test Component module on ERP5TypeTestLoader.
All other Component modules must be kept alive during the REQUEST life (f523edc).
However, Unit Tests modules should be kept alive until it finished executing and
this may span accross multiple REQUESTS.

Issue found out when migrating testBusinessTemplate to erp5_core_test which was
failing as the module was GC'ed and its top-level variables were reset to None by
the interpreter.
2020-02-20 14:57:04 +09:00
Arnaud Fontaine de85c464d8 erp5_core_test: Migrate core tests ERP5/ERP5Type Products which have no external bt5 dependencies.
Not migrated:
  + testERP5Site: Checks Site creation and overrides setUp().
  + testERP5TypeInterfaces: Verifies that classes implements the Interfaces they claim to implement.
    => Should probably be integrated into coding style Unit Tests and done
       dynamically (MRO). Also, testERP5Interfaces imports code from that
       Unit Test and requires non-core bt5 to be installed.
  + testInvalidationBug: To-do (failing).
  + testPredicate: testDomainTool, inheriting from TestPredicateMixin, should be rewritten to not
    depend on erp5_apparel so that it can be moved to erp5_core_test.

Also, move manuallyInstallBusinessTemplate() and uninstallBusinessTemplate() from
ERP5TypeCommandLineTestCase to ERP5TypeTestCaseMixin as they are also used by
Live Unit Tests.
2020-02-20 14:57:04 +09:00
Valentin Benozillo 1d5680fe7b erp5_insolvency_proceeding: Fix remove project specific path 2020-02-19 14:28:28 +00:00
Valentin Benozillo b8f44c3109 erp5_base: Remove acquired stop_date display in insolvency proceeding listbox 2020-02-19 14:16:43 +00:00
Valentin Benozillo 08973d0e79 erp5_insolvency_proceeding: Remove acquired stop_date display 2020-02-19 14:11:07 +00:00
Valentin Benozillo e24081445f erp5_insolvency_proceeding: Add erp5_dms as dependencies 2020-02-19 13:48:27 +00:00
Jérome Perrin 51fca55a00 deferred_style: Allow to configure an activity family
If set, all potentially long activities will be running on this family.

This can be used to prevent situation where all activities are no longer processed because all activity nodes are busy processing reports.
2020-02-19 11:59:25 +01:00
Jérome Perrin a8871500ff deferred_style: Fix pylint warnings and enable coding style 2020-02-19 11:59:24 +01:00
Arnaud Fontaine dae5899ea4 testPredicate: Fix pylint errors and warnings. 2020-02-19 16:36:57 +09:00
Arnaud Fontaine 2d6d1556eb testDynamicClassGeneration: Cosmetics. 2020-02-19 16:36:56 +09:00