Skip to content

[19.0][MIG] agreement_sale: Migration to 19.0#100

Open
Vang-NguyenPhu wants to merge 25 commits intoOCA:19.0from
komit-consulting:19.0-mig-agreement_sale
Open

[19.0][MIG] agreement_sale: Migration to 19.0#100
Vang-NguyenPhu wants to merge 25 commits intoOCA:19.0from
komit-consulting:19.0-mig-agreement_sale

Conversation

@Vang-NguyenPhu
Copy link

@Vang-NguyenPhu Vang-NguyenPhu commented Jan 15, 2026

Depends on:

@Vang-NguyenPhu Vang-NguyenPhu force-pushed the 19.0-mig-agreement_sale branch from d37cb6f to b59b0ab Compare January 15, 2026 09:47
@Vang-NguyenPhu Vang-NguyenPhu mentioned this pull request Jan 15, 2026
5 tasks
@leemannd
Copy link

Hello @Vang-NguyenPhu is it possible to squash a bit the translation/administrative commits?

liweijie0812 and others added 19 commits January 23, 2026 16:26
we move the is_template field definition and the agreement.type model from
the agreement_legal module to the agreement module.

The fields are not displayed by default, unless the feature is enabled through a
technical feature group, this is configurable in the agreement_sale module (because agreement
in itself has no UI, and agreement_legal enables the feature by default)
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-14.0/contract-14.0-agreement_sale
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement_sale/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: agreement-17.0/agreement-17.0-agreement_sale
Translate-URL: https://translation.odoo-community.org/projects/agreement-17-0/agreement-17-0-agreement_sale/
@Vang-NguyenPhu Vang-NguyenPhu force-pushed the 19.0-mig-agreement_sale branch from b59b0ab to 5d4bfbc Compare January 23, 2026 09:27
@Vang-NguyenPhu
Copy link
Author

Hello @Vang-NguyenPhu is it possible to squash a bit the translation/administrative commits?

All good now, please help to review. Thank you @leemannd

@Vang-NguyenPhu Vang-NguyenPhu force-pushed the 19.0-mig-agreement_sale branch from 5d4bfbc to 231eef2 Compare January 23, 2026 09:35
@Vang-NguyenPhu
Copy link
Author

Vang-NguyenPhu commented Jan 23, 2026

Hi @leemannd Do you know how to fix this error? It seems like OCA changed the behavior of adding depends PR, right? Could you please guide me on how to fix this? Thank you.

image

@leemannd
Copy link

Hello, this is due because you depend on a non merged PR. You should add a test-requirements.txt file.

There is an example in -> OCA/delivery-carrier@c9f657b

@Vang-NguyenPhu Vang-NguyenPhu force-pushed the 19.0-mig-agreement_sale branch 3 times, most recently from e2ba0ff to 7a7ef49 Compare January 26, 2026 02:36
@Vang-NguyenPhu
Copy link
Author

Hi @leemannd , I did exactly like the example e2ba0ff, but pipline still fails with the same result. Could you please help me with this? Thank you

@Vang-NguyenPhu Vang-NguyenPhu force-pushed the 19.0-mig-agreement_sale branch from 7a7ef49 to c8233d0 Compare February 4, 2026 08:08
Copy link

@Quan-nhm Quan-nhm left a comment

Choose a reason for hiding this comment

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

It's LGTM for functional test and code review. but it would be greate if you could refactor the comment as well.

Comment on lines 25 to 27
action = self.env["ir.actions.act_window"]._for_xml_id(
"sale.action_quotations"
)

Choose a reason for hiding this comment

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

Can we move it outside of the loop?
action = self.env["ir.actions.act_window"]._for_xml_id( "sale.action_quotations" )

"sale.action_quotations"
)
if len(sale_order_ids) == 1:
action["views"] = [(self.env.ref("sale.view_order_form").id, "form")]

Choose a reason for hiding this comment

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

Can we have this outside of the loop as well? self.env.ref("sale.view_order_form")

Copy link

@huan-tq huan-tq left a comment

Choose a reason for hiding this comment

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

Function Tested and it's LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.