- 04 Apr, 2018 4 commits
-
-
Jérome Perrin authored
In internal transactions, we can have a payment line where source is using a bank account and destination is using another bank account. Bank Reconciliation did not support these lines properly, because it simply assumed that *"if there's a bank reconciliation on this line, it means the line is reconciled"*, but this was incorrect, because source and destination needs to be able to reconcile this line independently. The fixes is to change the rule from *"if there's a bank reconciliation on this line, it means the line is reconciled"* to *"if there's a bank reconciliation with the same bank account as this line's source payment, it means the line is reconciled for source"* and *"if there's a bank reconciliation with the same bank account as this line's destination payment, it means the line is reconciled for destination"*. The related key used to select the already reconciled lines or lines to reconcile becomes a bit more complex, it joins with category table to ensure the bank reconciliation's bank account (which is `source_payment` on the bank reconciliation) is the same as the `section_uid` of the line in stock table that we are considering. This also has a side effect that this related key only work with queries on stock table, but it was never intended to be used elsewhere. Another problem is that queries made by bank reconciliation module become a bit more slower. For sites where this is a problem, the recommended approach is to replace the related keys by columns on stock table. In cfec8d2b (which is part of this MR) we add indexation methods. In 5afb002090cd965bd17ffcf5c4c54ba73dfcbfc4 (which is not part of this MR and not planned for inclusion in "default" ERP5) we show an example of how to enable these methods to actually add the columns in stock table. /reviewed-on nexedi/erp5!495
-
Jérome Perrin authored
We realized that the references of notification messages used in credential request management had a typo (`crendential` vs `credential`) and that the message used for a new credential request was not using the same `credential_request` prefix as others. This MR changes the messages as follow: | Wrong Reference | Correct Reference | | --- | --- | | erp5-subscription.notification | credential_request-subscription | | crendential_request-confirmation-without-password | credential_request-confirmation-without-password | | crendential_request-confirmation-with-password | credential_request-confirmation-with-password | | crendential_request-confirmation-without-password | credential_request-confirmation-without-password | | crendential_recovery-reset-link | credential_recover-reset-link | | crendential_recovery-username | credential_recovery-username | This is an incompatible change that can affect projects that have defined some custom notification messages without explicitly setting the references on the system preferences (ie. getting the default value from the property definition). I found one project using custom notification messages, but preference was defined. Other projects I checked did not override these notification messages. In our projects, we mostly use messages for credential requests, but the reference for the notification message is usually defined as a property of the web section. So I'm confident this should not affect projects and we can proceed with this clean up without causing too much troubles. To check if you need to adjust notification messages, check if you have customized notification message with reference *Wrong Reference*. /reviewed-on nexedi/erp5!492
-
Jérome Perrin authored
The background: Following up nexedi/erp5!393 , we updated security configuration used in Nexedi ERP5 , we wanted to add a security rule so that users uploading a `Personal/Private` document are allowed to "share" that document (technically, it's sharing with themselves only because it's a private document, but it's useful to distinguish from drafts). Then we discovered that in the current workflow configuration, only `Assignor` role is allowed to *share*, but `Assignor` is also allowed to *publish*, but we did not want users to publish their personal documents.. --- Original commit message: Previously, only Assignor was able to publish, share and release, this make it impossible to have security configuration where some user can only share and not publish documents. To address this issue in the more backward compatible way possible, we enable these transitions for Associate and keep them enabled for Assignor role. /reviewed-on nexedi/erp5!497
-
Jérome Perrin authored
My use case is that we have an ERP5 configuration where a PDF document is "implictly" created when user validate an invoice. Later this PDF becomes "secret" and we want to remove permissions on the PDF to all except a small group of users. Please also read commit message for more uses cases. My idea is to change globally document publication workflow to remove permissions for Owner, because usually in workflow we don't have security for Owner, except in draft states. For cases where the user who created the document must have certain permissions for the whole lifetime of the document, we can create a security rule where this user would be Associate. Also, for the case of documents, maybe we would want to use *Contributors* fields instead of Owner, as it gives more flexibility. In what I am suggesting, the permissions by state would change from: ![Screenshot_2017-09-15_at_16.12.53](/uploads/5b3664a2663deb893ea4f8fc9858a52f/Screenshot_2017-09-15_at_16.12.53.png) to: ![Screenshot_2017-09-15_at_17.34.34](/uploads/95803dc89e1a2501c29872a6a5131c33/Screenshot_2017-09-15_at_17.34.34.png) The full updated `document_publication_workflow` specification would be: [P-ERP5.Workflow.Security.After.Removing.Owner.pdf](/uploads/02eac46ec436385d0d0577695803b3b5/P-ERP5.Workflow.Security.After.Removing.Owner.pdf) But this is an incompatible change, because some users will loose access to some documents they use to have access. /reviewed-on nexedi/erp5!393
-
- 03 Apr, 2018 4 commits
-
-
Tomáš Peterka authored
/reviewed-on nexedi/erp5!621
-
Tomáš Peterka authored
Translate worklist and history page /reviewed-on nexedi/erp5!620
-
Romain Courteaud authored
Use reindexObject which can group activities.
-
Romain Courteaud authored
-
- 30 Mar, 2018 17 commits
-
-
Romain Courteaud authored
Reduce duplicated code.
-
Romain Courteaud authored
Use the hardcoded https://validator.erp5.net service This service is installed with: https://lab.nexedi.com/nexedi/slapos/tree/master/software/htmlvalidatorserver
-
Romain Courteaud authored
-
Nicolas Wavrant authored
Add "Post Modules", a serie of modules whose purpose is to track exchanges in/out of ERP5. Currently, users write Mail Messages (usually as a HTML content), and then send the Mail Message. The RFC5322 version of the email (what is given to MailHost and sent over the network) is generated on the fly and never stored anywhere. About Letter, no output is generated. It means that exchanges are not tracked, and if an Event is sent 2 times, we don't know their exact content on both times. Posts have the purpose to fix this issue, by creating objects storing the content of the sent Events **exactly as they are transmitted out of ERP5**. In exemple, sent Mail Messages will be converted to a multi-part message, stored as a Internet Message Post, which content will be transmitted as such to MailHost. For Letters, their content can be processed (by erp5_corporate_identity for exemple), then converted to PDF, and stored as Letter Post. We can then imagine actions/alarms to gather all exportable Letters Posts and mail them to a printer. Posts follow their own workflow, shared in between all post types, which allow to track which posts are in the sending queue, which have been sent and which have been received. It must be easy to know when an event has been sent several time, and retrieve the content of each of these sendings. Design of the post modules/workflow should also allow an easy customization (for exemple, we may want to send all emails by bulk, instead of 1 by 1, in order to set up mass-emailing policies). /reviewed-on nexedi/erp5!532
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
This mixin contains all the methods returning values based on the mail message itself contained in the data property of the EmailDocument.
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
erp5_crm: display standard preview on Mail Message only if internet_message_post_module isn't installed
-
Nicolas Wavrant authored
The attachment field now uses the property aggregate_document_title of Event.
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
It will be used to differenciate attachments from Mime Post.
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
-
Jérome Perrin authored
This should address two issues: 1. Allow using a custom python interpreter where all eggs dependencies would already be installed. 2. The test names did not have stable name, because they were the full path of the folder, which varies from one test node to another. This depends on changes in the profile done in nexedi/slapos!309 . This changes the internals of `EggTestSuite` so other tests reusing it ( I think we only have [`deploy-test`](https://lab.nexedi.com/nexedi/slapos/blob/41191a29cd16af13b2667d1979f35628c6065fde/software/erp5testnode/testsuite/deploy-test/runTestSuite.py#L151-154) ) will have to be updated once a new `erp5.util` is released. @luke I guess this won't be a problem and this would allow to fix that second issue for deploy test as well, so I did not consider being backward compatible here. /cc @rafael @alain.takoudjou /reviewed-on nexedi/erp5!619
-
- 29 Mar, 2018 5 commits
-
-
Tristan Cavelier authored
Move Base_checkCloneDocumentPermission beside Base_createCloneDocument
-
Nicolas Wavrant authored
As blobs aren't serializable
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
-
Tristan Cavelier authored
-
- 27 Mar, 2018 10 commits
-
-
Tristan Cavelier authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
Drop usage of cellpadding, cellspacing, border.
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Romain Courteaud authored
2nd try
-
Romain Courteaud authored
-