Skip to content

Improve branches management for project's repository #67

@sebalix

Description

@sebalix

On a project repository, we should get rid of the clone_branch_id field and re-use branch_ids field we already have.
For generic repositories (like OCA) the branch_ids is read-only and populated when modules are scanned, but for specific/project repositories, we should be able to edit this field, and set e.g. a master branch, running a version 16.0, and add another one like 18.0-mig that is running on 18.0. This will require new fields on odoo.branch.

Then, on odoo.project, instead of linking only the underlying odoo.repository this project is based on, we will have to also define the branch (among the repository available branches) to use.

That way we end-up with one cloned project repository and multiple branches fetched in it.

This allows to run a migration scan on these project repositories (work ongoing on oca-port to support any module path here: OCA/oca-port#52) to analyze the gap between the production branch (which could still evolve) and its migration branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions