Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Wrong Margin in Sales Report ( with real time - fifo) costing - V12 Enterprise.

Subscribe

Get notified when there's activity on this post

This question has been flagged
salesfifocostingmargin
5 Replies
8549 Views
Avatar
bhavik vyas


In sales report given in reporting section in sales app, Margin is calculated based on order lines for particular variant ,means unit price - (cost in sales order line)..
Now cost in sales order line is taken based on product onchange (from product variant form).
But in Real time valuation with FIFO.Cost price in product variant is updated once there is an outgoing.so cost price is not updated yet while you are doing sales ,and leading to wrong margin in the Sales report.
​

For example :
let say product variant  x have 58.5 as cost price in form view.Now i purchased a new unit with 78.
but still cost in product variant is 58.5(because it will update once i do the sales/delivery.)

Now when i create sales order ,odoo will take 58.5 as cost in order line based on product variant  onchange. While it should be 78.
​
Is this a real issue with Real time -FIFO or i am doing something wrong ?
If it's the issue is there any solution .
And also i don't understand logic behind updating cost after delivery order is done .Is there any particular reason ,odoo has done it in such way ?

0
Avatar
Discard
Avatar
bhavik vyas
Author Best Answer

Hello All, my bad for the late response.
As a solution, what I did is I converted the cost field in the order line as a computed field, which takes values from the Product - Cost field. That way once the delivery order is completed, values in the order line with the latest cost will be updated and hence the correct margin report.

0
Avatar
Discard
Manish Bohra

Thanks for the reply.

Can you share your code which one you’re applied.

Avatar
Katrina Agius
Best Answer

this has been a bone of contention for us since we started with odoo. as far as we can understand, even with studio, there is no way to have margin be accurate in real time., this means sales people still need to do external calculations to be able to ensure an adequate margin is applied. we found you can only achieve margin reporting accurately once goods are received and delivered (we are using AVCO) and purchase invoices posted.

0
Avatar
Discard
Avatar
Paresh Wagh
Best Answer

In FIFO (First In First Out), the cost of the item is determined at the time the picking is completed because the system is able to determine the "first in" batch only at that point in time.

0
Avatar
Discard
bhavik vyas
Author

Thanks for the input Paresh! I did some research myself. It turns out that the reason why odoo updated only after the delivery order is ,the cost field in product is not actually cost it is cost of goods sold -> which can only be determined after good has been sold. Because there could be landed cost also be involved in delivering product exact cost of goods sold can only be determine once delivery is done.

However ,the error in margin is real ,because in sale report ,margin is calculated only based on the cost price given in the sales order line at the time of sales order creation .

Maarten Gerits

Dear Bhavik

I'm experiencing the same issue at the moment

Do you have found a solution for the reporting of the margin in de sale reports ?

Thx

OdooBot
Yes ,i found a solution with a customization. 
Bhavik Vyas
ERP-Consultant
9033986379
www.odoowikia.com




On Fri, Jan 31, 2020 at 12:19 PM Maarten Gerits <maarten@mgbusiness.net> wrote:

Dear Bhavik

I'm experiencing the same issue at the moment

Do you have found a solution for the reporting of the margin in de sale reports ?

Thx

Envoyé par Odoo S.A. using Odoo.

Avatar
Manish Bohra
Best Answer

Hello Bhavik, 

Have you find any solution related to this one?

0
Avatar
Discard
Avatar
Frank de Goeij
Best Answer

Dear Bhavik or others,

We are facing the same issue. Could the solution be shared? Thanks



0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
See detailed product analysis V17E
sales costing analysis margin OdooV17
Avatar
0
Oct 24
1344
Margin calculation in sales
sales margin
Avatar
Avatar
1
Dec 22
5024
How to calculate sales margin when selling UOM is different than purchase UOM?
sales margin
Avatar
0
Oct 17
5437
Set Sales Margin visibility only for users with Sales Manager Permissions? Solved
sales margin 9.0c
Avatar
Avatar
2
Jun 22
7012
Project costing multiplier
sales costing adjustment
Avatar
0
Feb 16
3778
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now