Friday, December 26, 2025
2 changes · 17.0
Resolved issues and error corrections
This update ensures invoices exported with specific European VAT settings (like distance selling) accurately reflect the customer's VAT number in the generated PDF invoices. Previously, the VAT number was incorrectly defaulting to the company's VAT. This fix corrects this issue, ensuring accurate financial reporting and compliance.
Original PR description
When exporting invoices, the VAT number of the company could be wrong if the fiscal position of the invoice defines a foreign VAT number. In that case we need to use it. Steps to reproduce: 1.…
When exporting invoices, the VAT number of the company could be wrong if the fiscal position of the invoice defines a foreign VAT number. In that case we need to use it. Steps to reproduce: 1. Install a European localization (e.g. l10n_at) 2. Enable EU Intra-community Distance Selling. You should now have new OSS fiscal positions. Update the one you want to use with a foreign VAT. 3. Create a valid foreign customer. (within the EU) 4. Create and send an invoice for this customer. 5. In the PDF, there is an embedded factur-x file. Notice how the VAT number under the SellerTradeParty corresponds to the company's VAT, not the foreign VAT number defined on the fiscal position. This is more apparent because we use the correct VAT number in the PDF file but not in the corresponding XML. This commit fixes this issue by first checking if we have a foreign VAT number defined on the fiscal position of the invoice. If so, we use it. This is a backport of odoo/odoo#236692. Since this is a general fix, it is needed by customers using 17.0 and therefore necessary to add. opw-5401880 opw-5182837
This update fixes an issue where quotations created from repair orders in the Point of Sale (PoS) system incorrectly displayed a quantity of 0 for products. The fix ensures that the product quantity is accurately reflected when opening a quotation linked to a repair order, resolving a data discrepancy. This improves the accuracy of sales reporting and order fulfillment.
Original PR description
backoprt of : https://github.com/odoo/odoo/pull/186812 When opening a quotation created from a repair order in the PoS the quantity of the products would always be 0. Steps to reproduce: ------------------- * Create a repair order for whatever product * Add some product to the list with the "Add" option * Start and End the reparation * Create a quotation for the repair order * Open the quotation in the PoS > Observation: The quantity of the product in the pos is 0 Why the fix: ------------ If the sale order line has no `valued_move_ids` it means that it's linked to a repair. In this case we take the product_uom_qty into account for the pos order line quantity. opw-4261097