e54510cb8bb9961909efddbf2a67191dc47a22e1
This commit aims at: 1. Fixing a bug where the invoice would be uploaded in the wrong journal ------------------------------------------------------------------------ To reproduce: - Go to Customer invoices - Upload an invoice (with an embedded FacturX) - The journal is set to Vendor Bill 2. Letting the FacturX move type override the user-chosen move type ------------------------------------------------------------------- Currently, if the user uploads a credit note in a customer invoice journal, the document is not created and set to the OCR. This is due to a restrictive check which has been removed. Therefore, when the move type is defined in the FacturX XML, we will use it to override the user choice so that the document is always created within the right journal. 3. Harmonizing the invoice upload between the Accounting and the Documents apps and avoid code duplication ---------------------------------------------------------------------------------------------------------- Currently, the flow of uploading an invoice from the Accounting app and the Documents app is different. Indeed, if one uploads an invoice in the Document app and click on the "Create invoice", the document is sent directly to the OCR. Now, instead, we will pass this document to the same upload method of the Accounting (which will try to create the invoice from the FacturX XML if present). Therefore, the flow will now be the same from the two apps for better harmonization. 4. Adding a 4th button in the Documents app to create a Vendor refund --------------------------------------------------------------------- Currently, there are 3 buttons to create a customer invoice, a credit note, a vendor bill, but no vendor refund. This is due to a duplicate xmlid which has now been fixed allowing the 4th button to be seen in the UI. 5. Adding a button "Switch into customer invoice/vendor bill" button in the account.move's form view ---------------------------------------------------------------------------------------------------- Currently, the user has access to a "Switch into credit note/refund" but not the reverse button to go from a credit note/refund to an invoice/bill. This is now the case. Task id 2961932 closes odoo/odoo#103427 Related: odoo/enterprise#32890 Signed-off-by: William André (wan) <wan@odoo.com>
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%