Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Payment method in invoice

Subscriure's

Get notified when there's activity on this post

This question has been flagged
enterprisePayment-Methods17.0
3 Respostes
6555 Vistes
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
Best Answer

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
Best Answer

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 Best Answer

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
Enjoying the discussion? Don't just read, join in!

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

Registrar-se
Related Posts Respostes Vistes Activitat
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
d’ag. 25
1754
Optional Products not showing when adding product to cart
enterprise products webshop 17.0
Avatar
Avatar
Avatar
Avatar
3
de set. 24
3140
How do I Migrate from odoo online to odoo SH Solved
online migration enterprise 17.0
Avatar
Avatar
Avatar
2
de jul. 24
10755
Odoo 17 Pos Js development
17.0
Avatar
Avatar
1
d’ag. 25
2471
How can I make the cost field on products readonly? Solved
17.0
Avatar
Avatar
Avatar
2
d’ag. 25
999
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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