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

[18.0][MIG] product_contract #1137

Draft
wants to merge 168 commits into
base: 18.0
Choose a base branch
from

Conversation

sbejaoui
Copy link
Contributor

@sbejaoui sbejaoui commented Nov 4, 2024

No description provided.

Ted Salmon and others added 30 commits November 4, 2024 15:04
* 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
Rad0van and others added 16 commits November 4, 2024 15:04
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-17.0/contract-17.0-product_contract
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-product_contract/
Currently translated at 100.0% (48 of 48 strings)

Translation: contract-17.0/contract-17.0-product_contract
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-product_contract/it/
Currently translated at 100.0% (48 of 48 strings)

Translation: contract-17.0/contract-17.0-product_contract
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-product_contract/it/
…ree not editable

Before this changes, when trying to edit a line of sale order, it was
opening the form of the line. But following the way to work of odoo
with sale event, we have make a new contract configurator that will
be opened when selecting a product of type contract.
Currently translated at 100.0% (48 of 48 strings)

Translation: contract-17.0/contract-17.0-product_contract
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-product_contract/it/
…using confirmation date_start

With these changes, we allow the contract line start date to be computed
using the order confirmation date. When the product is configured with
any of the options set in contract_start_date_method other than manual,
the start date will be calculated based on the established date and the
selected period.

Additionally, we can force the month in which we will work in case the
frequency is yearly, quarterly, or semesterly.

Is not added support for daily, weekly or monthlylastday in this commit.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-17.0/contract-17.0-product_contract
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-product_contract/
Currently translated at 100.0% (90 of 90 strings)

Translation: contract-17.0/contract-17.0-product_contract
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-product_contract/it/
@sbejaoui sbejaoui added this to the 18.0 milestone Nov 4, 2024
@sbejaoui sbejaoui marked this pull request as draft November 4, 2024 14:10
@sbejaoui sbejaoui force-pushed the 18.0-mig_product_contract-sbj branch 2 times, most recently from e09e8e6 to fd938b6 Compare November 4, 2024 15:55
@sbejaoui sbejaoui force-pushed the 18.0-mig_product_contract-sbj branch from fd938b6 to 17c7d97 Compare November 5, 2024 13:54
@sbejaoui sbejaoui force-pushed the 18.0-mig_product_contract-sbj branch 3 times, most recently from 686d98b to 7baddd8 Compare November 18, 2024 15:09
@sbejaoui sbejaoui force-pushed the 18.0-mig_product_contract-sbj branch from 7baddd8 to 0bcce04 Compare November 21, 2024 13:09
@sbejaoui sbejaoui force-pushed the 18.0-mig_product_contract-sbj branch from a3a3dbc to 7dd87ac Compare November 22, 2024 10:52
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.