- May 22, 2023
-
-
Yolann Sabaux authored
Steps to reproduce: In an account move, if the partner_id is changed to one that does not have a value assigned in the property_purchase_currency_id field and with a value in the context for default_currency_id, when passing through the _onchange_partner_id function of the purchase module, Cause: the variable currency_id will take the value in the context as second option causing an error when trying to get the value in currency_id.id because currency_id will be an integer and not a record. issue-121232 closes odoo/odoo#121620 Signed-off-by:
Yolann Sabaux (yosa) <yosa@odoo.com>
-
- Apr 25, 2023
-
-
Yolann Sabaux authored
Steps to reproduce: - put the currency of the bill to eur - change the partner with a partner with no purchase currency set Issue: The bill is re-set to usd Note: addendum to https://github.com/odoo/odoo/pull/116852 opw-3233527 closes odoo/odoo#118350 Signed-off-by:
Cedric Snauwaert <csn@odoo.com>
-
- Apr 06, 2023
-
-
Yolann Sabaux authored
Steps to reproduce: - company currency = USD - set a partner P with a `property_purchase_currency_id` in EUR - create a bill with Azure partner and set an bill line - change to partner P issue -> the currency of the line has not been change - change to Azure issue -> no change about the currency Cause: - We update the move.currency_id but not the line_ids.currency_id - after setting Partner P, we try to set a partner that no `property_purchase_currency_id`, we do not enter in the condition opw-3233527 closes odoo/odoo#116852 Signed-off-by:
Cedric Snauwaert <csn@odoo.com>
-
- Mar 07, 2023
-
-
Antoine (ande) authored
To reproduce the issue: 1. In Accounting, settings, activate Analytic Accounting 2. Head over to the purchase module, create an RFQ 3. Add a POL to the RFQ, with an analytic account specified 4. Save the RFQ 5. Edit the RFQ, and change the Order Deadline 6. The analytic account in the POL has disappeared Error: The analytic account should not disappear When modifying the deadline, the analytic account was always being replaced, even if the replacement was empty. In the same version (14.0), the same fix can be found in AML: https://github.com/odoo/odoo/blob/1dcd071b27779e7d6d8f536c7dce7002d27212ba/addons/account/models/account_move.py#L3583-L3584 In 16.0, the issue doesn't need to be fixed, as it has already been fixed, by a similar fix, as seen in POL: https://github.com/odoo/odoo/blob/c677f45dcb050ce7e6f755b71e56c9b9120bf613/addons/purchase/models/purchase.py#L1153 OPW-3159905 closes odoo/odoo#114326 Signed-off-by:
Adrien Widart <awt@odoo.com>
-
- Sep 07, 2022
-
-
Yolann Sabaux authored
Steps to reproduce: - create two products - create two analytic accounts - create two new analytic rules by assigning an account to a product - Create a new PO and select on of the product - On the same line, change the product to the other one Issue: - The analytic account won't be updated Cause: Bypass of the `account_analytic_id` whenever there is already on defined Solution: For the `Sale` fix, I added the `line.state == 'draft'`. The reason? Because the compute is triggered after confirmation of the order due to: https://github.com/odoo/odoo/blob/14.0/addons/sale/models/sale.py#L931-L935 Therefore, the compute won't also be triggered after confirmation of the SO. opw-2948950 closes odoo/odoo#98151 Signed-off-by:
William André (wan) <wan@odoo.com>
-
- Sep 03, 2022
-
-
Nasreddin Boulif (bon) authored
Steps to reproduce: - Install purchase - Go to Settings and activate `Variant Grid Entry` - Create a new Requests for Quotation - Add a customer and add a product that has a variant min 2 variant - Wizard should ask for the variant - Select 1 variant by increasing quantity in the grid and confirm - Confirm order - Add again a product variant with the wizard Issue: Price unit is not set on the new line. Cause: In `_onchange_quantity` (triggered by the purchase_product_matrix module), we do not update price unit if order line is in state `purchase` or `done`. Solution: Replace condition to not perform `_onchange_quantity` if order line has an invoice line. opw-2956755 closes odoo/odoo#99471 X-original-commit: 063f7af8 Signed-off-by:
Adrien Widart <awt@odoo.com> Signed-off-by:
Nasreddin Boulif (bon) <bon@odoo.com>
-
- Jul 01, 2022
-
-
Thomas Beckers authored
If we use the auto-complete feature to add PO's lines to an bill or we select multiple PO's then use 'create bill' button, the generated invoice line will copy the sequence line from the PO's line. This can lead to situation where we will have all the first lines of each PO then all the second, etc, ending with a mix of all PO's in the bill. Example: Purchase order 1 - seq 10 line A - seq 11 line B - seq 12 line C Purchase order 2 - seq 10 line A' - seq 11 line B' - seq 12 line C' Invoice created from those PO's - seq 10 PO1:line A - seq 10 PO2:line A' - seq 11 PO1:line B - seq 11 PO2:line B' - seq 12 PO1:line C - seq 12 PO2:line C' After this PR this PR the lines from the same PO's will be contiguous like: Invoice created from those PO 1 and 2 - seq 10 PO1:line A - seq 11 PO1:line B - seq 12 PO1:line C - seq 13 PO2:line A' - seq 14 PO2:line B' - seq 15 PO2:line C' opw-2749682 closes odoo/odoo#93673 Signed-off-by:
Steve Van Essche <svs@odoo.com>
-
- Mar 03, 2022
-
-
Adrien Minet authored
How to reproduce the bug ? - install the accounting, contacts and purchase apps - create several companies and enable the checkboxes of all these companies - create a new contact and add a bank account for each company - switch to a company different than the first one - create a request for quotations in the purchase apps and confirm it - in the accounting app, create a new vendor bill and use the auto-complete field to select the RFQ created earlier. The bug: When you try to create a vendor bill from a request for quotations, the recipient bank is wrongly chosen. Because of that, there will be 2 issues. The first one is when you want to create the bill from the RFQ: you will get an error and the invoice won't be created. The second one is when you create an invoice then use the auto-complete field. In this case, there won't be any error but the recipient bank will be wrong. opw-2731264 closes odoo/odoo#84305 Signed-off-by:
Adrien Minet <admi@odoo.com> Signed-off-by:
Steve Van Essche <svs@odoo.com>
-
- Sep 24, 2021
-
-
Audric Onockx (auon) authored
Reproduce : 1. Add a default analytical rule: if Coin Gourmand partner then Administrative analytical account 2. Create a PO at the Coin Gourmand supplier, add a product, and select the Internal analytical account. 3. Bill for this product. Result : Internal analytical account has disappeared from the invoice line. It has been replaced by Administrative. Issue : AccountMove.create() computes an account in the move and this causes the analytic account to be reset at its default value from the rule. Fix : Since the account pocalypse in 13.0, account.move is making magic things during the creation of the invoice to create dynamically the invoice lines like account.invoice did before this huge refactoring. The create is making a 'New' record to simulate the onchange but this code is a hack triggering unexpected recomputation like the analytic account. To avoid that, we ensure to assign the minimum number of fields to preserve fields like the analytic account. closes odoo/odoo#76751 Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
- Aug 06, 2021
-
-
Adrien Widart authored
When the Product Price precision is greater than the currency precision, it can lead to incorrect data To reproduce the error: (Enable debug mode) 1. Settings > Technical > Database Structure > Decimal Accuracy, edit Product Price: - Digits: 3 2. Create a PO - Add a product: - Quantity: 12 - Unit Price: 0.001 3. Save, Confirm, Edit the PO: - Qty Received: 12 - (Note that the total is $0.01) 4. Create a bill: - Add the PO to the field "Auto-Complete" Error: The unit price is $0.000 and so does the total The rounding of the unit price should be based on the Product Price precision, not the currency precision. OPW-2601867 closes odoo/odoo#74627 Signed-off-by:
Rémy Voet <ryv-odoo@users.noreply.github.com>
-
- Jul 05, 2021
-
-
Adrien Widart authored
When adding several PO to a bill, if they don't have the same currency, it will lead to incorrect amounts To reproduce the error: 1. In Settings, enable "Multi-Currencies" 2. Invoicing > Configuration > Currencies: - EUR: Active, Current Rate = 2 - USD: Active, Current Rate = 1 3. Create a PO: - Currency: USD - Products: - One product, no taxes, unit price 1000 4. Confirm PO 5. Edit PO: - Qty Received: 1 6. Repeat 3 -> 5 with EUR instead of USD 7. Open a new Bill 8. Add the first PO to the field "Auto-Complete" 9. Add the second PO to the field "Auto-Complete" Error: Both invoice lines are now expressed in EUR and both subtotals are equal to 1000 even though the exchange rate isn't 1 This commit suggests not to change the currency of the account move if the latter already has some AML. Moreover, the amounts must be converted if they come from a PO that uses another currency OPW-2573748 closes odoo/odoo#73247 Signed-off-by:
Steve Van Essche <svs-odoo@users.noreply.github.com>
-
- Jul 31, 2020
-
-
Laurent Smet authored
l10n runbot builds are all failing when running at least one test depending of AccountTestCommon bec - doesn't create a sandboxed testing environnement to manage the multi-currency, multi-company, the - doesn't setup a testing user then all tests are done using the superuser. - doesn't provide a fully setup chart of accounts: exchange difference journal is not set, accounts - is run sometimes at-install. --task: 2301180
-
- Mar 27, 2020
-
-
yhu-odoo authored
======== Purpose ======== Currently, purchase missing some billing functions that we have in sale invoicing: - Create credit note when necessary - Create vendor bill in batch in list view ======== Spec ======== - In case of retures, when create a bill for a purchase order, we check the total amount we want to bill to decide whether it's a vendor bill or a credit note. - In the list view, add a new action to create vendor bill/credit note for all selected order. ======== Links ======== Task 2170715 PR #44210 Related: odoo/upgrade#919 Signed-off-by:
Simon Lejeune (sle) <sle@openerp.com>
-