Conversation
663c231 to
be0367d
Compare
|
/ocabot migration product_contract |
|
Sorry @bosd you are not allowed to mark the addon to be migrated. To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons. If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the |
53f361e to
3600f5d
Compare
|
/ocabot migration product_contract @bosd I see that you have generated |
Yeah, I noticed that the custom script i used, created this.. |
|
Uhm, I don't think it's OK, as now it's even more confusing about its source. I would prefer to let them as it was than this way. |
3600f5d to
53cde28
Compare
|
It is ok now |
53cde28 to
321af49
Compare
670735b to
bcf1c24
Compare
|
Hey @bosd, I found this issue raulovallet@67bfd99. It causes the default values not to be set correctly and throws an error when closing the window. I’m not sure how I can contribute—could you make a cherry-pick or I have to do a pull request here? |
|
Hi @bosd , I am facing an issue here with this module - the required="is_contract" on date_start seems to be wrong. In state draft,sent there must not be a date_start specified. Why is this required ? |
|
Hi @bosd , Please ignore my last comment - i found the real issue... I have been working on an migrated database (migrated from v16) - i had sale.order.line's with contract_start_date_method='manual' and date_start=null For the record - i've fixed it with: UPDATE sale_order_line sol
SET date_start = COALESCE(
(SELECT cl.date_start FROM contract_line cl
WHERE cl.sale_order_line_id = sol.id AND cl.date_start IS NOT NULL LIMIT 1),
(SELECT so.date_order::date FROM sale_order so WHERE so.id = sol.order_id),
sol.create_date::date
)
FROM product_product pp
JOIN product_template pt ON pt.id = pp.product_tmpl_id
WHERE sol.product_id = pp.id
AND pt.is_contract IS TRUE
AND sol.date_start IS NULL
AND COALESCE(sol.contract_start_date_method, 'manual') = 'manual'; |
e1d146d to
a31eb84
Compare
a31eb84 to
a375146
Compare
|
Any update for this? |
|
/ocabot rebase |
|
@etobella The rebase process failed, because command |
a375146 to
fc8a7ad
Compare
…ttings [IMP] product_contract: add Recurrence Number to compute start and end dates [FIX] product_contract: add sol name dependes [IMP] product_contract: add recurrence interval [IMP] product_contract: add recurring_interval
…d to recurrence_number for more clarity rename default_qty to recurrence_number
…ack a contract template Before this commit, confirming a sales order would raise an exception if any line lacked a configured contract template, preventing the creation of the contract. Now, sales order lines without a contract template are automatically added to a new contract without a template, allowing the process to continue seamlessly.
ca4fb8e to
3d004a4
Compare
| @@ -0,0 +1 @@ | |||
| odoo-addon-contract_termination @ git+https://github.com/OCA/contract@refs/pull/1367/head#subdirectory=contract_termination | |||
There was a problem hiding this comment.
This should be removed from the migration commit 😉
3d004a4 to
a9dbb5c
Compare
a9dbb5c to
428b17e
Compare
|
@tobiaszehntner an you please review? |
428b17e to
b11857a
Compare
The context sent to the contract configurator was missing default_recurrence_interval. It was lost when the context was moved to the contractContext getter. As a result, the configurator always showed the model default (Month(s)) for the contract duration unit, and validating it wrote that value back to the sale order line. A product sold for "6 Year(s)" ended up as "6 Month(s)" on the line, and so did the contract end date once it was recomputed, e.g. when the start date is set at confirmation.
…perties instead of array indices Cherry-picked from raulovallet/contract@67bfd99
`contract.contract.sale_order_count` / `action_view_sales_orders` and `contract.line._get_auto_renew_rule_type` had no test at all, which is what dropped the patch coverage below the branch baseline. Add tests for the sale order count, both branches of the sales order action (single order opens the form, several open the list), the auto renew rule type mapping for `monthlylastday`, and the sale order line link that `_prepare_invoice_line` puts on the invoice line.
`sale.order.line.invoice_line_create()` has not existed in `sale` since v12; invoicing goes through `_create_invoices` / `_prepare_invoice_line`. The override has therefore been unreachable for several series - calling it would raise `AttributeError` on the `super()` call - and it is referenced nowhere else. Contract lines are already kept out of the sale invoicing flow by the `_compute_invoice_status` and `_compute_qty_to_invoice` overrides right next to it, so nothing takes over from this removal.
b11857a to
e6431bb
Compare
Standard migration using odoo-module-migrator .
This version is severly cleaned according to:
https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests#mergesquash-the-commits-generated-by-bots-or-weblate
Total reduction from 202 to 105 commits (44% reduction)
Also lists the depends properly.
depends on:
#1312
#1367
#1370