Skip to content

[FIX] expomex: fix xml complemento de pago download t#99140#33

Open
JJRR5 wants to merge 1 commit into18.0from
18.0-fix-expomex-payment-xml-access-JJRR5
Open

[FIX] expomex: fix xml complemento de pago download t#99140#33
JJRR5 wants to merge 1 commit into18.0from
18.0-fix-expomex-payment-xml-access-JJRR5

Conversation

@JJRR5
Copy link
Copy Markdown
Contributor

@JJRR5 JJRR5 commented Apr 13, 2026

Users in group_account_readonly_salesperson have an ir.rule that restricts
account.move reads to their own invoices/credit notes. When downloading the
XML complemento de pago, the system needs to read the payment journal entry
(move_type=entry) linked to the payment, which is blocked by this rule.

Extend the rule domain to allow entry moves when they are linked to the user's
own payment invoices via origin_payment_id.invoice_ids. This enables users to
download CFDI XML attachments without granting access to unrelated entries.

Security: The domain ensures users can only read entries that are directly
linked to their own invoices via payment relationships.

MR: https://git.vauxoo.com/vauxoo/expomex/-/merge_requests/30
task

@JJRR5 JJRR5 force-pushed the 18.0-fix-expomex-payment-xml-access-JJRR5 branch from b90b11f to a01fa53 Compare April 15, 2026 22:05
…nal entries

Users in group_account_readonly_salesperson have an ir.rule that restricts
account.move reads to their own invoices/credit notes. When downloading the
XML complemento de pago, the system needs to read the payment journal entry
(move_type=entry) linked to the payment, which is blocked by this rule.

Extend the rule domain to allow entry moves when they are linked to the user's
own payment invoices via origin_payment_id.invoice_ids. This enables users to
download CFDI XML attachments without granting access to unrelated entries.

Security: The domain ensures users can only read entries that are directly
linked to their own invoices via payment relationships.
@JJRR5 JJRR5 force-pushed the 18.0-fix-expomex-payment-xml-access-JJRR5 branch from a01fa53 to 3411fa6 Compare April 16, 2026 15:13
@JJRR5 JJRR5 changed the title [FIX] expomex: extend account.move rule to allow reading payment journal entries t#99140 [FIX] expomex: fix xml complemento de pago download t#99140 Apr 16, 2026
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.

1 participant