Skip to content

[IMP] purchase_ux: include vendor child contacts in purchase bill matching#334

Open
mav-adhoc wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-t-69018-mav
Open

[IMP] purchase_ux: include vendor child contacts in purchase bill matching#334
mav-adhoc wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-t-69018-mav

Conversation

@mav-adhoc

Copy link
Copy Markdown
Contributor

Summary

When pressing the "Associate purchase lines" button on a vendor invoice, the matching dialog now also shows PO lines where the vendor is a child contact (same commercial partner) of the invoice's vendor.

Previously the domain filtered by partner_id IN (vendor, commercial_partner), which excluded POs made to child contacts (e.g. sub-vendors sharing the same parent company). The fix replaces that condition with partner_id.commercial_partner_id IN (vendor, commercial_partner), which traverses the hierarchy and includes all child contacts.

Files changed: purchase_ux/models/account_move.py

Task: https://www.adhoc.inc/odoo/action-197/69018

@roboadhoc

Copy link
Copy Markdown
Contributor

Pull request status dashboard

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants