mirror of
https://github.com/bringout/oca-payment.git
synced 2026-04-27 04:02:00 +02:00
Initial commit: OCA payment modules from bank-payment
- account_payment_mode: Payment methods configuration
- account_payment_partner: Link payment modes to partners
- account_payment_order: Create and manage payment orders
- account_payment_order_grouped_output: Consolidated accounting entries
Source: OCA/bank-payment branch 16.0
License: AGPL-3.0
🤖 assisted by claude
This commit is contained in:
commit
99c650f4f5
204 changed files with 77191 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
from . import account_invoice_report
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
# Copyright 2021 Tecnativa - Víctor Martínez
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class AccountInvoiceReport(models.Model):
|
||||
_inherit = "account.invoice.report"
|
||||
|
||||
payment_mode_id = fields.Many2one(
|
||||
comodel_name="account.payment.mode",
|
||||
string="Payment mode",
|
||||
readonly=True,
|
||||
)
|
||||
|
||||
def _select(self):
|
||||
select_str = super()._select()
|
||||
return "%s, move.payment_mode_id AS payment_mode_id" % select_str
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2021 Tecnativa - Víctor Martínez
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<odoo noupdate="1">
|
||||
<record id="view_account_invoice_report_search" model="ir.ui.view">
|
||||
<field name="name">account.invoice.report.search</field>
|
||||
<field name="model">account.invoice.report</field>
|
||||
<field name="inherit_id" ref="account.view_account_invoice_report_search" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="partner_id" position="after">
|
||||
<field name="payment_mode_id" />
|
||||
</field>
|
||||
<filter name="category_product" position="after">
|
||||
<filter
|
||||
string="Payment Mode"
|
||||
name="payment_mode_id"
|
||||
context="{'group_by': 'payment_mode_id'}"
|
||||
/>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue