Skip to content
  • This project
    • Loading...
  • Sign in

nexedi / erp5

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Merge Requests 111
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Merged
Merge Request !970 opened 2019-10-23 13:17:19 UTC by Bryton Lacquement@bminusl

Support unobtainable creation dates (= None) in BTs

In general, getCreationDate tries to obtain the date from the following sources (in that order):

  1. the workflow history

  2. the creation_date attribute

  3. returns None if it can't find any

However:

The objects on which getCreationDate is called (in this case):

  • do not have a workflow history;

  • nor the creation_date attribute.

The date is actually obtained from the portal ("portal.creation_date") by Acquisition.

Because of an incoming change related to CMF (we drop Products.CMFDefault)(see !957), this behavior will change and None will be returned instead.

Edited 2019-10-23 15:20:59 UTC
Request to merge bt_support_unobtainable_creation_dates into master

Merged by Bryton Lacquement 2019-10-23 15:14:53 UTC

The changes were merged into master. The source branch has been removed.

  • Discussion 1
  • Commits 2
  • Changes 4
  • {{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • @bminusl Bryton Lacquement
    @bminusl commented 2019-10-23 13:17:35 UTC
    Developer

    \cc @jm

  • @bminusl Bryton Lacquement
    @bminusl

    mentioned in merge request !957

    2019-10-23 13:21:08 UTC

    mentioned in merge request !957

    Toggle commit list
  • @bminusl Bryton Lacquement
    @bminusl

    merged

    2019-10-23 15:14:53 UTC

    merged

    Toggle commit list
  • @bminusl Bryton Lacquement
    @bminusl

    mentioned in commit 83af33d7

    2019-10-23 15:20:53 UTC

    mentioned in commit 83af33d7

    Toggle commit list
  • @bminusl Bryton Lacquement
    @bminusl

    mentioned in commit 1519d81a

    2019-10-23 15:20:59 UTC

    mentioned in commit 1519d81a

    Toggle commit list
  • Write
  • Preview
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
  • Please register or sign in to post a comment
Sven Franck
Assignee
Sven Franck @frequent
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View labels
3
3 participants
Reference: nexedi/erp5!970
×

Revert this commit

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.
×

Cherry-pick this commit

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备14008524号