Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

12.0 imp commown integrate contract forecast #210

Merged
merged 16 commits into from
Nov 21, 2023

Conversation

fcayre
Copy link
Collaborator

@fcayre fcayre commented Oct 10, 2023

No description provided.

@fcayre fcayre force-pushed the 12.0-imp-commown-integrate-contract_forecast branch from 1b6076d to 1a98000 Compare October 10, 2023 05:49
@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (da6d8b1) 90.31% compared to head (e4870ec) 90.47%.
Report is 10 commits behind head on 12.0.

Files Patch % Lines
commown_contract_forecast/models/contract.py 57.14% 3 Missing ⚠️
rental_fees/models/rental_fees_computation.py 91.89% 2 Missing and 1 partial ⚠️
commown_contract_forecast/tests/test_functional.py 96.77% 1 Missing and 1 partial ⚠️
rental_fees/models/rental_fees_definition.py 91.30% 2 Missing ⚠️
commown_contract_forecast/models/contract_line.py 96.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             12.0     #210      +/-   ##
==========================================
+ Coverage   90.31%   90.47%   +0.15%     
==========================================
  Files         248      254       +6     
  Lines        8239     8407     +168     
  Branches     1058     1083      +25     
==========================================
+ Hits         7441     7606     +165     
- Misses        628      632       +4     
+ Partials      170      169       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fcayre fcayre force-pushed the 12.0-imp-commown-integrate-contract_forecast branch 7 times, most recently from c0be09c to 85efd24 Compare October 16, 2023 06:51
@fcayre fcayre marked this pull request as draft October 17, 2023 09:06
@fcayre fcayre force-pushed the 12.0-imp-commown-integrate-contract_forecast branch 6 times, most recently from 0fc4ca6 to 3b13dab Compare October 23, 2023 17:48
@fcayre fcayre force-pushed the 12.0-imp-commown-integrate-contract_forecast branch 2 times, most recently from 61c1591 to bc4cd40 Compare October 26, 2023 11:19
@fcayre fcayre force-pushed the 12.0-imp-commown-integrate-contract_forecast branch 2 times, most recently from 7dc8d0d to c628c46 Compare November 9, 2023 12:24
@fcayre fcayre force-pushed the 12.0-imp-commown-integrate-contract_forecast branch from c628c46 to 2f87fa9 Compare November 16, 2023 15:02
@fcayre
Copy link
Collaborator Author

fcayre commented Nov 17, 2023

/ocabot rebase

We use the dedicated trap_jobs context manager to get the jobs generated in the tests.
Before that, jobs added by contract_forecast install hook were interfereing.
This commit requires pull requests to contract_forecast and queue_job.
Note editing a discount does not trigger the recomputation for now.
For the moment, commown_contract_forecast does not depend on any accounting setup
module, so the tests that generate invoices crashes. This commit fixes that by
inserting odoo-maintained minimal account data to avoid this.
It is now replaced by the more general contract_forecast module.
Each fees period dict is added a new "is_forecast" key to ease the
choice between invoices and forecasts in the proportional fees_type
computation.
These fields will be useful for forecast analysis and management
decision making.
They will be useful to analyse them.
Also use the run_datetime field instead of today().
When the fees computation date is in the future, the objective is likely
to analyze the fees detailed results. This is much easier graphically,
in which case we assume that the fees will be invoiced monthly and not
at the end of a fees period, which is meaningless for the end user. This
is why we split the fees period into months and store that in the
computation details table.
@github-grap-bot
Copy link
Collaborator

Congratulations, PR rebased to 12.0.

@github-grap-bot github-grap-bot force-pushed the 12.0-imp-commown-integrate-contract_forecast branch from 2f87fa9 to e4870ec Compare November 17, 2023 16:46
@fcayre
Copy link
Collaborator Author

fcayre commented Nov 21, 2023

/ocabot merge patch

@github-grap-bot
Copy link
Collaborator

This PR looks fantastic, let's merge it!
Prepared branch 12.0-ocabot-merge-pr-210-by-fcayre-bump-patch, awaiting test results.

@fcayre fcayre marked this pull request as ready for review November 21, 2023 04:51
@github-grap-bot github-grap-bot merged commit a0aac41 into 12.0 Nov 21, 2023
4 checks passed
@github-grap-bot github-grap-bot deleted the 12.0-imp-commown-integrate-contract_forecast branch November 21, 2023 05:07
@github-grap-bot
Copy link
Collaborator

Congratulations, your PR was merged at 3a79721. Thanks a lot for contributing to commown. ❤️

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.

2 participants