Skip to content

[18.0][IMP] subscription_oca: removing automatic date_start to today when subscription goes i…#1401

Open
cvinh wants to merge 1 commit into
OCA:18.0from
invitu:18.0-imp-subscription_do_not_force_date_start_today
Open

[18.0][IMP] subscription_oca: removing automatic date_start to today when subscription goes i…#1401
cvinh wants to merge 1 commit into
OCA:18.0from
invitu:18.0-imp-subscription_do_not_force_date_start_today

Conversation

@cvinh
Copy link
Copy Markdown

@cvinh cvinh commented Mar 6, 2026

…n progress. This could be useful when we launch a subscription with a date start different from today

Copy link
Copy Markdown
Contributor

@luisDIXMIT luisDIXMIT left a comment

Choose a reason for hiding this comment

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

LGTM!

@rrebollo
Copy link
Copy Markdown

@cvinh PR title should be something along [18.0][IMP] subscription_oca: ....

Copy link
Copy Markdown

@rrebollo rrebollo left a comment

Choose a reason for hiding this comment

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

Technically correct. Would you consider covering the modification with some tests? I'm guessing a small adjustment to one of the existing tests would work. Ping me then.

Comment thread subscription_oca/models/sale_subscription.py
@cvinh cvinh changed the title [18.0][IMP] removing automatic date_start to today when subscription goes i… [18.0][IMP] subscription_oca: removing automatic date_start to today when subscription goes i… Apr 21, 2026
@cvinh cvinh force-pushed the 18.0-imp-subscription_do_not_force_date_start_today branch from 4f99b5e to e85d009 Compare April 21, 2026 18:45
@cvinh
Copy link
Copy Markdown
Author

cvinh commented Apr 21, 2026

Technically correct. Would you consider covering the modification with some tests? I'm guessing a small adjustment to one of the existing tests would work. Ping me then.

tests added

…n progress. This could be useful when we launch a subscription with a date start different from today. If no date is set, it takes today.
@cvinh cvinh force-pushed the 18.0-imp-subscription_do_not_force_date_start_today branch from e85d009 to 3dd8f95 Compare April 21, 2026 19:17
@cvinh
Copy link
Copy Markdown
Author

cvinh commented Apr 21, 2026

I don't understand why tests fail

Copy link
Copy Markdown

@rrebollo rrebollo left a comment

Choose a reason for hiding this comment

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

Code Review. LGTM!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants