Skip to content

Conversation

@Andrii9090
Copy link

@Andrii9090 Andrii9090 commented Oct 16, 2025

The date.range model currently supports only a single company (company_id).
This requires creating multiple date ranges for different companies, which complicates management.
To resolve this, we replace the field company_id with company_ids (Many2many) in the model date.range

It's a short video with funcional test
https://www.loom.com/share/f1a0719eafa443058e3a0befc0eed9b4?sid=fbbd55c0-f75d-48aa-b9ec-d93e28af320f

Issue
@moduon
MT-10678

The date.range model currently supports only a single company (company_id).
This requires creating multiple date ranges for different companies,
which complicates management.
To resolve this, replace the company_id field with company_ids (Many2many).
@OCA-git-bot
Copy link
Contributor

Hi @lmignon,
some modules you are maintaining are being modified, check this out!

@Andrii9090 Andrii9090 marked this pull request as draft October 16, 2025 13:50
@Andrii9090 Andrii9090 changed the title [IMP] date_range: Set multicompanies support for the date.range model [18.0][IMP] date_range: Set multicompanies support for the date.range model Oct 16, 2025
@Andrii9090 Andrii9090 marked this pull request as ready for review October 16, 2025 14:10
Copy link

@cav-adhoc cav-adhoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Andrii9090
Copy link
Author

Hi @lmignon can you review this PR?

Thanks ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants