Skip to content

[18.0][MIG] agreement_account: Migration to 18.0#58

Merged
OCA-git-bot merged 13 commits intoOCA:18.0from
HeliconiaIO:18.0-mig-agreement_account
Sep 10, 2025
Merged

[18.0][MIG] agreement_account: Migration to 18.0#58
OCA-git-bot merged 13 commits intoOCA:18.0from
HeliconiaIO:18.0-mig-agreement_account

Conversation

@BhaveshHeliconia
Copy link
Copy Markdown
Contributor

No description provided.

@BhaveshHeliconia BhaveshHeliconia mentioned this pull request Feb 17, 2025
7 tasks
@BhaveshHeliconia BhaveshHeliconia force-pushed the 18.0-mig-agreement_account branch from e6e559b to ea6959a Compare April 3, 2025 12:01
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 3, 2025

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Aug 3, 2025
@BhaveshHeliconia BhaveshHeliconia force-pushed the 18.0-mig-agreement_account branch from ea6959a to 179d5cd Compare August 6, 2025 11:20
@github-actions github-actions Bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Aug 10, 2025
@rafaelbn
Copy link
Copy Markdown
Member

rafaelbn commented Sep 3, 2025

/ocabot migration agreement_account

@rafaelbn
Copy link
Copy Markdown
Member

rafaelbn commented Sep 3, 2025

@moduon MT-9987

/ocabot rebase

@OCA-git-bot
Copy link
Copy Markdown
Contributor

@rafaelbn The rebase process failed, because command git push --force HeliconiaIO tmp-pr-58:18.0-mig-agreement_account failed with output:

remote: Permission to HeliconiaIO/agreement.git denied to OCA-git-bot.
fatal: unable to access 'https://github.com/HeliconiaIO/agreement/': The requested URL returned error: 403

@rafaelbn rafaelbn added the no stale Use this label to prevent the automated stale action from closing this PR/Issue. label Sep 3, 2025
@rafaelbn
Copy link
Copy Markdown
Member

rafaelbn commented Sep 3, 2025

Please @BhaveshHeliconia , could you rebase to get test 🍏 😄 Thank you!

@rafaelbn rafaelbn requested a review from imlopes September 3, 2025 19:21
Copy link
Copy Markdown
Contributor

@imlopes imlopes left a comment

Choose a reason for hiding this comment

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

LGTM

alexis-via and others added 13 commits September 4, 2025 09:24
Update agreement and agreement_sale to restore the behavior of v10

[UPD] Update agreement_account.pot

[UPD] README.rst
[MIG] Prettier and Black

[MIG] Prettier

[MIG] Fixed Tracking

[ADD]Added the Tests.

[IMP]Improved the Tests.
Currently translated at 100.0% (10 of 10 strings)

Translation: contract-14.0/contract-14.0-agreement_account
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement_account/es_AR/
Currently translated at 100.0% (10 of 10 strings)

Translation: contract-14.0/contract-14.0-agreement_account
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement_account/es/
Currently translated at 100.0% (7 of 7 strings)

Translation: agreement-17.0/agreement-17.0-agreement_account
Translate-URL: https://translation.odoo-community.org/projects/agreement-17-0/agreement-17-0-agreement_account/it/
@BhaveshHeliconia BhaveshHeliconia force-pushed the 18.0-mig-agreement_account branch from 179d5cd to 6f5e1f0 Compare September 4, 2025 03:54
@BhaveshHeliconia
Copy link
Copy Markdown
Contributor Author

@rafaelbn : The tests are green now. Thank you!

Copy link
Copy Markdown

@Gelojr Gelojr left a comment

Choose a reason for hiding this comment

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

Congratulations on the work—great job!
I executed the following tests and obtained these results:

  • Test 1: Customer invoice → Agreement field shown under Other Info, filtered by commercial partner (sale) and editable only in draft; after validation it becomes read-only; Result: OK.
  • Test 2: Vendor bill → Agreement field filtered by commercial partner (purchase); Result: OK; Note: after validation the Agreement field remains editable (not read-only), unlike customer invoices.
  • Test 3: Agreement (sale) smart button “Invoices” → Counter includes invoices and credit notes and opens the filtered list; Result: OK; Note: when generating a customer credit note from an invoice, the Agreement is not copied automatically and must be assigned manually.
  • Test 4: Agreement (purchase) smart button “Vendor Bills” → Counter includes vendor bills and refunds and opens the filtered list; Result: OK; Note: when generating a vendor refund from a bill, the Agreement is not copied automatically and must be assigned manually.
  • Test 5: Invoice search/group by Agreement → Filter and group by Agreement work as expected; Result: OK;
  • Test 6: Deletion integrity → Attempting to delete an Agreement with linked invoices is blocked by ondelete=restrict; Result: OK.
  • Test 7: Commercial partner hierarchy → An Agreement set on the parent partner can be selected on an invoice for a child contact thanks to child_of; Result: OK. Note: unlike agreement_sale, agreement_account only allows selecting Agreements of the invoice’s commercial partner (and its child contacts); Agreements from other partners do not appear in the dropdown.

Final note: There are inconsistencies with agreement_sale regarding domain filtering and the ability to select Agreements not linked to the invoice’s commercial partner; agreement_account restricts selection to the commercial partner and its child contacts, while agreement_sale allows selecting Agreements for different partners.

@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

@Shide Shide left a comment

Choose a reason for hiding this comment

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

Code review

Copy link
Copy Markdown
Member

@rafaelbn rafaelbn left a comment

Choose a reason for hiding this comment

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

/ocabot merge patch

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-58-by-rafaelbn-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 444decd into OCA:18.0 Sep 10, 2025
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 1d6e4bc. Thanks a lot for contributing to OCA. ❤️

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

Labels

approved merged 🎉 migration needs review no stale Use this label to prevent the automated stale action from closing this PR/Issue. ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.