Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sales Margin incorrect when sales currency different than company currency #70801

Open
assenovg opened this issue May 13, 2021 · 0 comments
Open

Comments

@assenovg
Copy link

Impacted versions: 14

Steps to reproduce: on Runbot:

  1. Create new category "Trade goods" with costing method average cost and inventory valuation automated
  2. Create new product "Milk" of type storable and assign it to the above category Trade goods. Set cost 10 USD.
  3. Create new pricelist "Euro pricelist" with fixed price 50 EUR for category trade goods
  4. Create new customer "Euro Customer" and assign the above pricelist "Euro pricelist".
  5. Check that the currency rate USD/EUR is correct (not 1.00, but 0.84 for 13.05)
  6. Purchase the product - 10 units for 100 USD. Receive the product in stock and create Vendor Bill.
  7. Create Sales order for customer "Euro Customer" and product "Milk". Price should be 50 EUR from the pricelist.
  8. Save - margin is 41.90 € (83.8%) - correct - the margin is calculated based on the conversion rate USD/EUR
  9. Confirm the sales order - margin changes to 40.00 € (80%) - not correct the margin is (50 - 10 !?).

Current behavior: Margin is incorrect - the currency of the sales order and the company currency are different. However, no currency conversion takes place when the SO is confirmed. The margin is correct only in the offer.

Expected behavior: The margin should be calculated in the company currency considering the sales currency conversion rate also in the Sales orders and available in the margin analysis report.

Video/Screenshot link (optional): Valid till 12.06
https://www.swisstransfer.com/d/d19c0180-128e-4514-8c98-5a0c294329f2

Support ticket number submitted via odoo.com/help (optional):

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

No branches or pull requests

1 participant