1. 04 May, 2022 2 commits
  2. 03 May, 2022 7 commits
  3. 02 May, 2022 3 commits
    • Xiaowu Zhang's avatar
      fix asset price on accounting line · 079b8a74
      Xiaowu Zhang authored
      See merge request !1611
      079b8a74
    • Xiaowu Zhang's avatar
      erp5_invoicing: make sure get correct SM · 6a9fe701
      Xiaowu Zhang authored
      we may get stopped SM in some case, maybe it's because sql is not updated.
      
      here is some trackback:
      ------
      2022-05-02 09:30:17,457 INFO InvoiceTransaction_selectInvoiceMovement, 37: <object object at 0x7f707a6e61f0> started  sm
      ------
      2022-05-02 09:30:17,459 INFO InvoiceTransaction_selectInvoiceMovement, 37: <object object at 0x7f707a6e61f0> started  sm
      ------
      2022-05-02 09:30:17,579 INFO InvoiceTransaction_selectDelivery, 27: <object object at 0x7f707a6e61f0> {<Sale Invoice Transaction at /nexedi/accounting_module/20220502-3DD4B45>: 1}
      ==> slappart8/var/log/zope-0-event.log <==               ***************************** deliver sale invoice transaction
      ------
      2022-05-02 09:30:21,512 INFO RuleTool Updating simulation for /nexedi/accounting_module/20220502-3DD4B45: {'create_root': 1, 'index_related': 1}
      
      ==> slappart5/var/log/zope-0-event.log <==
      ------
      2022-05-02 09:30:22,892 WARNING SQLDict Exception raised when invoking messages (uid, path, method_id) [(275788776658006010L, ('', 'nexedi', 'accounting_module', '20220502-3DD4B45'),
      '_localBuild')]
      Traceback (most recent call last):
        File "/srv/slapgrid/slappart16/srv/runner/software/cc627918c55102e3f1a6c6a0077f41bb/parts/erp5/product/CMFActivity/Activity/SQLBase.py", line 868, in dequeueMessage
          transaction.commit()
        File "/srv/slapgrid/slappart16/srv/runner/software/cc627918c55102e3f1a6c6a0077f41bb/eggs/transaction-1.7.0-py2.7.egg/transaction/_manager.py", line 123, in commit
          return self.get().commit()
        File "/srv/slapgrid/slappart16/srv/runner/software/cc627918c55102e3f1a6c6a0077f41bb/eggs/transaction-1.7.0-py2.7.egg/transaction/_transaction.py", line 280, in commit
          reraise(t, v, tb)
        File "/srv/slapgrid/slappart16/srv/runner/software/cc627918c55102e3f1a6c6a0077f41bb/eggs/transaction-1.7.0-py2.7.egg/transaction/_transaction.py", line 271, in commit
          self._commitResources()
        File "/srv/slapgrid/slappart16/srv/runner/software/cc627918c55102e3f1a6c6a0077f41bb/eggs/Products.TIDStorage-5.5.0-py2.7.egg/Products/TIDStorage/transaction_transaction.py", line 25
      1, in _commitResources
          result = original__commitResources(self, *args, **kw)
        File "/srv/slapgrid/slappart16/srv/runner/software/cc627918c55102e3f1a6c6a0077f41bb/eggs/transaction-1.7.0-py2.7.egg/transaction/_transaction.py", line 416, in _commitResources
          reraise(t, v, tb)
        File "/srv/slapgrid/slappart16/srv/runner/software/cc627918c55102e3f1a6c6a0077f41bb/eggs/transaction-1.7.0-py2.7.egg/transaction/_transaction.py", line 390, in _commitResources
          rm.commit(self)
        File "/srv/slapgrid/slappart16/srv/runner/software/cc627918c55102e3f1a6c6a0077f41bb/eggs/ZODB-4.4.5-py2.7.egg/ZODB/Connection.py", line 582, in commit
          self._commit(transaction)
        File "/srv/slapgrid/slappart16/srv/runner/software/cc627918c55102e3f1a6c6a0077f41bb/eggs/ZODB-4.4.5-py2.7.egg/ZODB/Connection.py", line 630, in _commit
          raise ConflictError(object=obj)
      ConflictError: database conflict error (oid 0x0c78a313, class erp5.portal_type.Sale Invoice Transaction)
      ------
      ******************* /nexedi/accounting_module/20220502-3DD4B45 localbuild restart because of ConflictError
      
      2022-05-02 09:30:23,340 INFO InvoiceTransaction_selectInvoiceMovement, 37: <object object at 0x7f707a6e61f0> stopped sm
      ------
      2022-05-02 09:30:23,342 INFO InvoiceTransaction_selectInvoiceMovement, 37: <object object at 0x7f707a6e61f0> stopped sm
      ------
      2022-05-02 09:30:23,381 INFO InvoiceTransaction_selectDelivery, 27: <object object at 0x7f707a6e61f0> {<Sale Invoice Transaction at /nexedi/accounting_module/20220502-3DD4B45>: 1}
      6a9fe701
    • Jérome Perrin's avatar
      core: use pprint.pformat to pretty print activity message_list · f8d826d4
      Jérome Perrin authored
      using json in 37b795fb was wrong,
      because not all arguments can be converted to json (for example
      DateTime instances)
      
      This also enable the format using pprint.pformat for args, instead
      of a simple str that was done in ActivityTool_getMessageList.
      f8d826d4
  4. 29 Apr, 2022 6 commits
  5. 28 Apr, 2022 4 commits
  6. 27 Apr, 2022 5 commits
    • Arnaud Fontaine's avatar
      593b6cf6
    • Arnaud Fontaine's avatar
      Cosmetic. · 445df739
      Arnaud Fontaine authored
      445df739
    • Arnaud Fontaine's avatar
      Fix typo (df85ef46). · 3130fbc7
      Arnaud Fontaine authored
      3130fbc7
    • Vincent Pelletier's avatar
      Products.CMFActivity.ActivityTool: Store user object in activity. · f363ac65
      Vincent Pelletier authored
      When spawning an activity, store the current security context's user in
      the Message object itself, so the activity security context can be
      re-created with the same security during activity execution.
      This allows a user to be modified (different groups, global roles, maybe
      removed altogether) after they spawned activities and before these activities
      could run.
      It also means that any temporary custom group or global role granted to
      that user (by a privilege elevation mechanism out of the scope of this
      change) will still be effective during the activity execution.
      This follows the principle that
        foo.activate(...).bar(...)
      should be equivalent to its "immediate execution" version
        foo.bar(...)
      by ensuring that the security context of the activity is the same as the
      one which was applied to the code which spawned that activity,
      independently of any intermediate configuration change - hence improving
      (deferred and fragmentary) transaction isolation.
      
      This also removes the need to look the user up, then looking up their
      assignments (and other documents involved in group computation), etc,
      saving the cost of these calls.
      
      Also, remove redundant user_name argument of Message.changeUser method.
      f363ac65
    • Jérome Perrin's avatar
      *: remove remaining bits of old PDF preview · 428833f3
      Jérome Perrin authored
      The action was removed in 6dce55b0 (dms: drop PDF thumbnail view, 2021-06-01)
      but some CSS declarations were not removed.
      
      Also remove some old commented out javascript that was referencing the
      old PDF preview
      428833f3
  7. 26 Apr, 2022 5 commits
  8. 25 Apr, 2022 5 commits
  9. 22 Apr, 2022 3 commits