Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • eLearning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Información
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Food & Hospitality
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Guest House
    • Distribuidor de bebidas
    • Hotel
    Real Estate
    • Real Estate Agency
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consulting
    • Accounting Firm
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Trades
    • Handyman
    • Hardware y asistencia informática
    • Solar Energy Systems
    • Zapatero
    • Servicios de limpieza
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

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

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
sale.order
4 Respuestas
13377 Vistas
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
Descartar
Michal Vesely
Autor

Odoo 11 CE

Avatar
Ray Carnes (ray)
Mejor respuesta

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
Descartar
Michal Vesely
Autor

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
Mejor respuesta

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
Descartar
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
Mejor respuesta

Look in the following area:


   
   

   

   











0
Avatar
Descartar
Avatar
Murola Group Oy
Mejor respuesta

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

0
Avatar
Descartar
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>

¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
Display field only for one company on list view Resuelto
sale.order
Avatar
Avatar
1
may 25
1698
Sale order Balance
sale.order
Avatar
Avatar
Avatar
2
nov 24
2775
sale / delivery Resuelto
sale.order
Avatar
Avatar
1
ene 24
2189
signature and stamp / sale order
sale.order
Avatar
0
may 23
2414
TypeError: Model 'sale.order' does not exist in registry. Resuelto
sale.order
Avatar
Avatar
Avatar
Avatar
4
abr 23
43014
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

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