Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
erp5 erp5
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 136
    • Merge requests 136
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • erp5erp5
  • Merge requests
  • !530

Closed
Created Dec 13, 2017 by Sven Franck@frequentDeveloper
  • Report abuse
Report abuse

WIP: new bt5 erp5 corporate identity

  • Overview 37
  • Commits 78
  • Changes 412+

(first version, tests passing - https://nexedi.erp5.net/test_result_module/20171220-64958276/16)

Summary:
This is a new business template for corporate identity documents - currently:

  1. Slide(show)
  2. Leaflet (aka two-pager)
  3. Letter
  4. Book (aka text document/sale offer/project report)

Details:
It adds templates and dialogs and can convert web pages (and event-letters) to html and pdf using wkhtmltopdf/cloudooo. The bt5 uses a default theme, which you can override to change the look. All templates are built the same way, so adding custom templates should be straightforward. The included tests compare rendered html & pdf to a predefined set of documents, which you can update automatically after changing the layout of template.

Noteworthy:

  • book adds support to embed documents (the previous book functionality in run-my-doc)
  • book adds support for embedding reports via url (eg project_module/123?report=Project_myReportName&key=value...)
  • there is another bt5 "nexedi-corporate-identity" which adds software themes and reports we are using (requirement coverage, cost effort, etc) - our customization of the generic theme.

Faq:

  1. why do you compare bmp images? => working version from Tristan, tried to do the equivalent with png, takes too much time (sorry Jerome)
  2. why do you parse HTML with re (parse strings)? => worked on prod & everyone recommends beautifulsoup, but it's not available in erp5 and there is no "how to add x to erp5"

Feedback:
It's my first "real" commit to erp5 and I tried to follow the guidelines I'm maintaining but I'm sure there is plenty to correct... Please let me know so I can fix.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: erp5_corporate_identity
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7