mirror of
https://github.com/bringout/oca-payment.git
synced 2026-04-25 04:42:04 +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,16 @@
|
|||
from odoo.tools import sql
|
||||
|
||||
|
||||
def pre_init_hook(cr):
|
||||
"""Prepare new partner_bank_id computed field.
|
||||
|
||||
Add column to avoid MemoryError on an existing Odoo instance
|
||||
with lots of data.
|
||||
|
||||
partner_bank_id on account.move.line requires payment_order_ok to be True
|
||||
which it won't be as it's newly introduced - nothing to compute.
|
||||
(see AccountMoveLine._compute_partner_bank_id() in models/account_move_line.py
|
||||
and AccountMove._compute_payment_order_ok() in models/account_move.py)
|
||||
"""
|
||||
if not sql.column_exists(cr, "account_move_line", "partner_bank_id"):
|
||||
sql.create_column(cr, "account_move_line", "partner_bank_id", "int4")
|
||||
Loading…
Add table
Add a link
Reference in a new issue