Skip to content

[19.0][MIG] sale_project_copy_tasks: Migration to 19.0#1646

Open
bizzappdev wants to merge 8 commits intoOCA:19.0from
BizzAppDev-Systems:19.0-mig-sale_project_copy_tasks-BAD
Open

[19.0][MIG] sale_project_copy_tasks: Migration to 19.0#1646
bizzappdev wants to merge 8 commits intoOCA:19.0from
BizzAppDev-Systems:19.0-mig-sale_project_copy_tasks-BAD

Conversation

@bizzappdev
Copy link
Copy Markdown
Contributor

No description provided.

EmilioPascual and others added 8 commits December 8, 2025 15:34
Without this patch, upgrading the addon raises this error:

    Field 'partner_id' used in context ({'default_partner_id': partner_id, 'default_sale_order_id': active_id}) must be present in view but is missing.

@moduon MT-3426
…d always

This reverts OCA#1416 and adds instead a different, more accurate fix for the problem (which kept yielding different errors).

The main source of problem is that the same view is adding a `project_id` field and editing another `project_id` fields' attributes. For this reason, installing the module didn't give any problems, but updating it was problematic.

The new field appeared above in the view hierarchy than the old one. The xpath for the old one was less specific than necessary, and then found the new one instead. The new one is within a tree subview, so the model is different (`sale.order.line` instead of `sale.order`). Thus the fields exposed to that field are different, and failures happened a bit randomly.

@moduon MT-3426
@bizzappdev bizzappdev marked this pull request as ready for review January 12, 2026 05:19
@luisDIXMIT
Copy link
Copy Markdown

Runboat is not available for testing. Is something wrong?

Copy link
Copy Markdown
Contributor

@alexey-pelykh alexey-pelykh left a comment

Choose a reason for hiding this comment

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

Thanks for taking this on. The copy_tasks_in_project service tracking type is well implemented — product template, sale order, and sale order line extensions all look good. Clean migration. LGTM.

Copy link
Copy Markdown
Member

@CristianoMafraJunior CristianoMafraJunior left a comment

Choose a reason for hiding this comment

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

LGTM

@OCA-git-bot
Copy link
Copy Markdown
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). 🤖

Copy link
Copy Markdown
Contributor

@BhaveshHeliconia BhaveshHeliconia left a comment

Choose a reason for hiding this comment

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

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.

8 participants