Skip to content

date_range: Set more one company for one date range #1159

@Andrii9090-tecnativa

Description

@Andrii9090-tecnativa

Is your feature request related to a problem?
Currently, in the date range model (date.range), you can only select one company, so you have to create many date ranges in an Odoo with multiple companies, and management becomes complicated.

Additional context
For example, I have to create three different date ranges, and I only need them in two of my companies.
Currently, I have to create six ranges of 3 periods, but it is inconvenient and will cause problems in the future when I need to update the data.

@lmignon can you help with this problem?
We can't change compnay_id (Many2one) -> company_ids(Many2many) indate.rangemodel and date.range.type` because there are many modules that depend on date_range.
Could there be a better solution?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions