Skip to content

[19.0][MIG] agreement: Migration to 19.0#99

Open
Vang-NguyenPhu wants to merge 56 commits intoOCA:19.0from
komit-consulting:19.0-mig-agreement
Open

[19.0][MIG] agreement: Migration to 19.0#99
Vang-NguyenPhu wants to merge 56 commits intoOCA:19.0from
komit-consulting:19.0-mig-agreement

Conversation

@Vang-NguyenPhu
Copy link

No description provided.

ygol and others added 24 commits January 15, 2026 14:59
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)
- The `agreement` model now features mail and activities from its base module.
- The `agreement_legal` module doesn't need to add mail support now.
- Add activities to form views.

@Tecnativa TT22477
Update agreement and agreement_sale to restore the behavior of v10
Co-authored-by: Denis Roussel (ACSONE) <rousseldenis@users.noreply.github.com>
Currently translated at 100.0% (64 of 64 strings)

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

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

Translation: agreement-17.0/agreement-17.0-agreement
Translate-URL: https://translation.odoo-community.org/projects/agreement-17-0/agreement-17-0-agreement/it/
@Vang-NguyenPhu Vang-NguyenPhu force-pushed the 19.0-mig-agreement branch 2 times, most recently from 6540d3e to 6f1b2e5 Compare January 15, 2026 08:43
@Vang-NguyenPhu Vang-NguyenPhu mentioned this pull request Jan 15, 2026
5 tasks
@leemannd
Copy link

/ocabot migration agreement

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Jan 15, 2026
@leemannd
Copy link

Hello @Vang-NguyenPhu , Is it possible to reduce the commit history by following -> https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-19.0
Also I am expecting to have at least two migration commits:

jakobkrabbe and others added 16 commits January 21, 2026 14:52
Currently translated at 100.0% (72 of 72 strings)

Translation: agreement-18.0/agreement-18.0-agreement
Translate-URL: https://translation.odoo-community.org/projects/agreement-18-0/agreement-18-0-agreement/sv/
Currently translated at 100.0% (72 of 72 strings)

Translation: agreement-18.0/agreement-18.0-agreement
Translate-URL: https://translation.odoo-community.org/projects/agreement-18-0/agreement-18-0-agreement/sv/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: agreement-18.0/agreement-18.0-agreement
Translate-URL: https://translation.odoo-community.org/projects/agreement-18-0/agreement-18-0-agreement/
Currently translated at 100.0% (74 of 74 strings)

Translation: agreement-18.0/agreement-18.0-agreement
Translate-URL: https://translation.odoo-community.org/projects/agreement-18-0/agreement-18-0-agreement/it/
Currently translated at 100.0% (74 of 74 strings)

Translation: agreement-18.0/agreement-18.0-agreement
Translate-URL: https://translation.odoo-community.org/projects/agreement-18-0/agreement-18-0-agreement/sv/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

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

Translation: agreement-18.0/agreement-18.0-agreement
Translate-URL: https://translation.odoo-community.org/projects/agreement-18-0/agreement-18-0-agreement/
Currently translated at 100.0% (73 of 73 strings)

Translation: agreement-18.0/agreement-18.0-agreement
Translate-URL: https://translation.odoo-community.org/projects/agreement-18-0/agreement-18-0-agreement/it/
@Vang-NguyenPhu
Copy link
Author

Hello @Vang-NguyenPhu , Is it possible to reduce the commit history by following -> https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-19.0 Also I am expecting to have at least two migration commits:

  • I rebased some Bot's commit.
  • Actually, there is nothing to commit at the first pre-commit

@CRogos
Copy link

CRogos commented Jan 21, 2026

Currently agreement and agreement_legal is a little confusing. Especially the Form, which is in agreement_legal not reused.

Maybe we can change agreement a little bit so that the extensions can more easily link in?

  • Add a group "Gernal" and "Term Dates" in module agreement
  • Maybe move some attributes to agreement_legacy when they are hidden by agreement_legal?
image

In agreement_legal there is already a roadmap what should be changed.

We are not yet using agreement but are interested. Currently there is a lot of stuff we don't need and would like to hide (or better not install).

cc: @MohamedOsman7

@gdgellatly
Copy link

Currently agreement and agreement_legal is a little confusing. Especially the Form, which is in agreement_legal not reused.

Maybe we can change agreement a little bit so that the extensions can more easily link in?

  • Add a group "Gernal" and "Term Dates" in module agreement
  • Maybe move some attributes to agreement_legacy when they are hidden by agreement_legal?
image In agreement_legal there is already a roadmap what should be changed.

We are not yet using agreement but are interested. Currently there is a lot of stuff we don't need and would like to hide (or better not install).

cc: @MohamedOsman7

Honestly, I am dead against this. The current layout works really well for agreement and agreement_rebate. I think if agreement_legal needs something special then make xpath selection easier to move but don't break the layout to suit one module.

Copy link

@gdgellatly gdgellatly left a comment

Choose a reason for hiding this comment

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

Notwithstanding the process nitpicks mentioned, functionally this module is working as expected. Tested in combination with #108 and own internal work with a test suite of nearly 250 unit and integration tests, plus manual work. Worked perfect.

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.

Functional tested and it's LGTM.

@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). 🤖

Copy link

@CRogos CRogos left a comment

Choose a reason for hiding this comment

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

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.