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

[17.0][MIG] product_contract #1083

Merged
merged 153 commits into from
Jun 4, 2024

Conversation

jaenbox
Copy link
Contributor

@jaenbox jaenbox commented May 7, 2024

"The migration of the module to version 17.0 has been completed. Several points indicated in the PR of version 16.0 have been corrected:

Migrated from #959

  1. The field 'line_recurrence' has been modified to have its default value set to True in the function _prepare_contract_value().
  2. In the action_create_contract() function, we have modified the append of the list of created contracts so that when obtaining the list of contracts and returning it, it is in the form contract.contract(xxx,) and not contract.contract(contract.contract(xxx,))."

We have made a modification to the _get_contract_line_qty() function so that the calculation of the quantity of the line in the contract is the same as that of the sales order.

Ted Salmon and others added 30 commits May 6, 2024 17:49
* Add contract functionality to `product.templates`
* Add logic to create contracts from `sale.order` that contains contract products.
* Change the method called in the view
* Complete the create_invoice method
* Bump version + authoring
* Correct bad call of method
  Small Documentation
* Add super call in python test
* FIX bad field names causing bad quantities in sale.order.line
- On Sale Order confirmation, a contract is created for each contract template used on sale order lines
- A not finished contract can be mentioned on sale order line
- A sale order line linked to a contract will update it and don't create a new one if it had the same template
recurring_next_date should be computed by contract line to get default value
- Sale order line for contract product pass to nothing to invoice on order confirmation
- Contract Invoices are linked to sale order line
…lylastday

for the monthlylastday case, pre-paid is logicly impossible,
if monthlylastday is set, we consider only post-paid case
@jaenbox jaenbox force-pushed the 17.0-mig-product_contract branch 5 times, most recently from 00c3177 to f579c2f Compare May 8, 2024 14:08
@jaenbox jaenbox force-pushed the 17.0-mig-product_contract branch from f579c2f to d1602ac Compare May 8, 2024 14:18
@jaenbox jaenbox changed the title [17.0][MIG] product contract [17.0][MIG] product_contract May 13, 2024
@jaenbox jaenbox mentioned this pull request May 13, 2024
12 tasks
@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@pedrobaeza
Copy link
Member

/ocabot migration product_contract

Have you checked v16 comments?

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Jun 4, 2024
@jaenbox
Copy link
Contributor Author

jaenbox commented Jun 4, 2024

/ocabot migration product_contract

Have you checked v16 comments?

I have been reviewing and yes, all the modifications indicated in the PR of 16.0 have been taken into account.

@pedrobaeza
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 17.0-ocabot-merge-pr-1083-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit f55f630 into OCA:17.0 Jun 4, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 9865909. Thanks a lot for contributing to OCA. ❤️

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.