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

Payment method in invoice

Subscribe

Get notified when there's activity on this post

This question has been flagged
enterprisePayment-Methods17.0
3 Replies
6575 Views
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
Discard
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
Discard
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
Discard
Avatar
Asis
Author 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
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
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
Aug 25
1761
Optional Products not showing when adding product to cart
enterprise products webshop 17.0
Avatar
Avatar
Avatar
Avatar
3
Sep 24
3141
How do I Migrate from odoo online to odoo SH Solved
online migration enterprise 17.0
Avatar
Avatar
Avatar
2
Jul 24
10769
Odoo 17 Pos Js development
17.0
Avatar
Avatar
1
Aug 25
2480
How can I make the cost field on products readonly? Solved
17.0
Avatar
Avatar
Avatar
2
Aug 25
1006
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