Daily updates from Odoo
Thursday, August 29, 2019
3 changes
Resolved issues and error corrections
Bank statement reconciliation now uses the invoice payment reference when matching payments to invoices. This helps payments with structured references, such as Belgian BBA or Swiss ISR references, reconcile more accurately and reduces manual correction work.
Original PR description
Since invoice_payment_ref exists on account.move it should be the reference used for reconciliation. For instance for structured refs like l10n_be_invoice_bba or ISR in l10n_ch -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes incorrect website and system URLs when Odoo runs behind a proxy using newer Werkzeug versions. It ensures Odoo correctly recognizes the public web address and secure connection details, preventing broken or misleading links for users.
Original PR description
Werkzeug 0.15 refactored ProxyFix, and as a side-effect made it only enable X-Forwarded-For by default where 0.14 also enabled X-Forwarded-Host and X-Forwarded-Proto. This breaks e.g. the proper generation of `web.base_url` as it now uses the wrong scheme (e.g. will generate an `http` URL if the proxy does SSL termination, which is common). Explicitly enable XFH and XFP when using werkzeug ≥ 0.15. See #35085 for more details. See pallets/werkzeug#1630 for tracking issue of replicating 0.14's behaviour when using the deprecated `werkzeug.contrib.fixers.ProxyFix` in 0.15.
The payment wizard now shows the payment method and bank account fields again for Mexican electronic invoicing. This prevents errors when paying multiple invoices and ensures the required payment complement can be generated correctly.
Original PR description
On this PR https://github.com/odoo/enterprise/pull/3944 was removed the fields for payment method and bank account in the payment wizard, but these fields are required to generate the payment complement, then, was returned. When the fields were removed not was removed the assignation in the methods, then I get a traceback when trying to pay many invoices. 