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
    Alimentación y hostelería
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • 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

Payment method in invoice

Suscribirse

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

Se marcó esta pregunta
enterprisePayment-Methods17.0
3 Respuestas
6584 Vistas
Avatar
Asis

Coming from v13 community to v17 enterprise. Wondering why there is no payment method field included in the invoices.


There are many ways in which a client can pay an invoice, one is where the company needs to start the process (SEPA debit). When preparing the batch payment, how would I filter those invoices I need to include if there is no payment method in the invoice itself!


0
Avatar
Descartar
Avatar
Gracious Joseph
Mejor respuesta

In Odoo 17 Enterprise, the payment method field isn't displayed by default on invoices because the system assumes that payment processing is managed via journal entries and bank reconciliation workflows. However, it is possible to customize this behavior to match your needs, especially for tasks like preparing SEPA debit payments.

Below are solutions to enable the payment method on invoices and filter invoices for batch payments:

1. Enable Payment Method on Invoices

Option 1: Use the Payment Journal as an Indicator

In Odoo, the Payment Journal field on the invoice represents where payments are processed. You can leverage this to specify payment methods indirectly.

Option 2: Add a Payment Method Field

You can add a custom field for Payment Method directly on the invoice form using either Odoo Studio or a custom module.

Using Odoo Studio:
  1. Go to Invoicing > Customers > Invoices.
  2. Open Odoo Studio.
  3. Drag and drop a Selection Field into the invoice form.
  4. Define the selection options for your payment methods:
    • SEPA Debit
    • Bank Transfer
    • Credit Card
    • Cash, etc.
  5. Save and apply your changes.
Using a Custom Module:

If you prefer coding, here’s how to add a payment_method field to the invoice (account.move) model:

pythonCopy codefrom odoo import models, fields

class AccountMove(models.Model):
    _inherit = 'account.move'

    payment_method = fields.Selection([
        ('sepa_debit', 'SEPA Debit'),
        ('bank_transfer', 'Bank Transfer'),
        ('credit_card', 'Credit Card'),
        ('cash', 'Cash'),
    ], string="Payment Method")

Add the field to the invoice form view:

xmlCopy code<record id="view_move_form_payment_method" model="ir.ui.view">
    <field name="name">account.move.form.payment.method</field>
    <field name="model">account.move</field>
    <field name="inherit_id" ref="account.view_move_form" />
    <field name="arch" type="xml">
        <xpath expr="//field[@name='partner_id']" position="after">
            <field name="payment_method" />
        </xpath>
    </field>
</record>

2. Use Payment Method for Filtering in Batch Payments

Scenario: Preparing SEPA Direct Debits

  1. SEPA Debit Management in Odoo:
    • Odoo handles SEPA payments via Batch Payments in journals configured for SEPA Direct Debit. These can be managed in the Payments menu.
    • Invoices need to be marked with SEPA as the payment method, either via a custom field or by linking them to a SEPA journal.
  2. Filter Invoices by Payment Method:
    • Use the new payment_method field to filter invoices.
    • Example: Add a filter in the Invoices view:
      xmlCopy code<record id="view_move_tree_payment_method_filter" model="ir.ui.view">
          <field name="name">account.move.tree.payment.method.filter</field>
          <field name="model">account.move</field>
          <field name="inherit_id" ref="account.view_invoice_tree" />
          <field name="arch" type="xml">
              <xpath expr="//filter[@name='unpaid']" position="after">
                  <filter string="SEPA Debit" domain="[('payment_method', '=', 'sepa_debit')]" />
              </xpath>
          </field>
      </record>
      

Filter in Batch Payments Preparation

When preparing batch payments (e.g., SEPA Direct Debit), Odoo will look for invoices linked to a journal supporting SEPA. With a payment_method field, you can:

  • Pre-filter invoices with payment_method = 'sepa_debit'.
  • Use automation to restrict batch payments to matching invoices.

3. Configure SEPA Journals for Automated Payments

  1. Go to Accounting > Configuration > Payment Journals.
  2. Create or configure a journal for SEPA payments:
    • Set Payment Method Type to SEPA Direct Debit.
    • Define Bank Account for the journal.
  3. Link invoices to the SEPA journal:
    • Set the SEPA journal in the invoice payment journal field.
    • Use batch payments to generate SEPA XML files.

4. Automate Payment Method Assignment

If certain customers always use a specific payment method:

  1. Add a payment_method field to the customer (res.partner):
    pythonCopy codeclass ResPartner(models.Model):
        _inherit = 'res.partner'
    
        default_payment_method = fields.Selection([
            ('sepa_debit', 'SEPA Debit'),
            ('bank_transfer', 'Bank Transfer'),
            ('credit_card', 'Credit Card'),
            ('cash', 'Cash'),
        ], string="Default Payment Method")
    
  2. Auto-populate the payment_method field in invoices based on the customer:
    pythonCopy codefrom odoo import models, api
    
    class AccountMove(models.Model):
        _inherit = 'account.move'
    
        @api.onchange('partner_id')
        def _onchange_partner_id(self):
            if self.partner_id:
                self.payment_method = self.partner_id.default_payment_method
    

5. Summary Workflow

  1. Add a Payment Method field to invoices (using Odoo Studio or custom code).
  2. Configure SEPA and other journals for different payment types.
  3. Use the payment_method field to filter and manage invoices for batch payments.
  4. (Optional) Automate payment method assignment for customers.

0
Avatar
Descartar
Avatar
Femaag
Mejor respuesta

I think the Payment Method field on invoices and partners was added in Odoo 18 if you have the possibility to migrate


And as said before, you can use it to filter invoices.

0
Avatar
Descartar
Avatar
Asis
Autor Mejor respuesta

Thank you Joseph,

Not sure why Odoo would make such an assumption as most small to medium companies work in this manner (at least in Spain) not only with customer invoices but also with vendor invoices. By not having a payment method in these latter ones you run the risk of paying invoices twice i.e. vendor sends SEPA direct debit and until you reconcile the bank, you make a wire transfer.

Anyways, will move forward with including the custom field but will probably link it to the account.payment_method table for it to be dynamic.


0
Avatar
Descartar
¿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
How can I edit the calendar view? Note: not the form but the view of the calendar labels of the project module
enterprise task calendarview 17.0
Avatar
Avatar
Avatar
2
ago 25
1769
Optional Products not showing when adding product to cart
enterprise products webshop 17.0
Avatar
Avatar
Avatar
Avatar
3
sept 24
3154
How do I Migrate from odoo online to odoo SH Resuelto
online migration enterprise 17.0
Avatar
Avatar
Avatar
2
jul 24
10788
Odoo 17 Pos Js development
17.0
Avatar
Avatar
1
ago 25
2485
How can I make the cost field on products readonly? Resuelto
17.0
Avatar
Avatar
Avatar
2
ago 25
1010
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