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

Mark a sales order as fully invoiced despite Order amount and invoiced amount do not match ()

Subscribe

Get notified when there's activity on this post

This question has been flagged
sale.order
4 Replies
13521 Views
Avatar
Michal Vesely

Hi, I need to mark SO as fully invoiced (because no more invoicing is expected) despite the invoice amount is not 100% of the SO.

We service our customers in many locations and charge them per travelled distance. In the quotation stage we estimate the distance and when the client accepts the conditions, we have SO with estimated distance (km). Nevertheless, once the service takes place, real distance shall be invoiced, but the SO is not editable any more as the sale is confirmed. We invoice a bit more or less than stated in SO and consider such SO as fulfilled.

Any idea how to mark SO as invoiced without going into the database ?

0
Avatar
Discard
Michal Vesely
Author

Odoo 11 CE

Avatar
Ray Carnes (ray)
Best Answer

Please post the Version (eg: 9, 10, 11) and Edition (Community, Enterprise, Online) as the answer might be different depending on which Version and/or Edition you use.

A great way to setup Odoo v11 (CE, EE, OE) to handle this case:

Create a product as a SERVICE with an INVOICING POLICY of "Delivered Quantities":



After the Sales Order is confirmed, you can now update the DELIVERED QUANTITY of the Service:


You can enter ANY quantity - either less than or more than the quoted amount - it can be HOURS, UNITS, KM, etc.


To mark EXISTING Orders as FULLY INVOICES, force the readonly attribute of the invoice_status field in the view to "0" so you can edit it.  You will have to do this AFTER the order has been LOCKED - if you change it before this Odoo will change it back.



You should do this in your own view, with code like this:

<data>
<field name="invoice_status" position="replace">
<field name="invoice_status" states="sale,done" readonly="0"/>
</field>
</data
1
Avatar
Discard
Michal Vesely
Author

Hi Ray, many thanks for the comprehensive advice. It works perfectly !

Tim Drinkwater

Wondering if you have any thoughts on accomplishing this with Studio on Odoo 16? As a manufacturer we often with ship less than the ordered amount due to production variances. "Invoiced Complete" is a common term. Is there a way to make a smart button or such to log an SO as complete?

Ray Carnes (ray)

@Tim - since this was posted we now have the ability to LOCK orders. You can also create your own Custom field and set the value with a Server Action if you need to, it depends on what you are trying to achieve

Avatar
Tim Drinkwater
Best Answer

Thank you for the reply Ray. I ended up creating a server action to change invoice status to invoiced and set it as contextual so that it appears in the action menu. Seems to work well for our needs. Thank you for all in the insights you provide on the forum!

0
Avatar
Discard
Samuel Afonso

Hi Tim! Can you tell me how did you created this server action to manage to turn a sales order "fully invoiced"?
Thank you!

Tim Drinkwater

I am not the best at this but I will try to lay out the steps. I suggest trying it first in a stagging environment or on runbot.
Turn developer mode on or install the app : https://youtu.be/wGWHAX68Rt8?si=-fQPDFS9uM0gu_zU
From the home screen simple start typing 'server action' and the option will appear.
Click new.
Model is sales order
Action is update record
Field is invoiced status
Evaluation type is value
Value is invoiced
Save
Click create contextual action
Goto sales application and refresh
Action should appear in the action drop down

If you are new to server actions I suggest watching some of this Odooer's videos. Some great tips:
https://www.youtube.com/@odoo-it-yourself/search?query=server

Avatar
JRM Business Systems Solutions, LLC
Best Answer

Look in the following area:


   
   

   

   











0
Avatar
Discard
Avatar
Murola Group Oy
Best Answer

Hello!
How exactly do I implement this in v15 / EE? Where do I put the code?

0
Avatar
Discard
JRM Business Systems Solutions, LLC

Likely in the view_order_form, notebook. Currently identified as invisible.

JRM Business Systems Solutions, LLC

<group name="sale_info" string="Invoicing">
<field name="fiscal_position_id" options="{'no_create': True}"/>
<field name="analytic_account_id" context="{'default_partner_id':partner_invoice_id, 'default_name':name}" attrs="{'readonly': [('invoice_count','!=',0),('state','=','sale')]}" groups="analytic.group_analytic_accounting" force_save="1"/>
<!-- <field name="invoice_status" states="sale,done" groups="base.group_no_one"/> -->
<field name="invoice_status" states="sale,done" readonly="0"/>
</group>

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
Display field only for one company on list view Solved
sale.order
Avatar
Avatar
1
May 25
1818
Sale order Balance
sale.order
Avatar
Avatar
Avatar
2
Nov 24
2869
sale / delivery Solved
sale.order
Avatar
Avatar
1
Jan 24
2280
signature and stamp / sale order
sale.order
Avatar
0
May 23
2520
TypeError: Model 'sale.order' does not exist in registry. Solved
sale.order
Avatar
Avatar
Avatar
Avatar
4
Apr 23
43226
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