mirror of
https://github.com/bringout/oca-payment.git
synced 2026-04-24 23:22:05 +02:00
Restructure: move packages from packages/ subdirectory to root
Flattened directory structure by moving payment packages from redundant packages/ subdirectory to the root level of oca-payment repository. Changes: - Moved odoo-bringout-oca-payment-* from packages/ to root - Updated CLAUDE.md to reflect new flat structure - Removed redundant packages/ directory 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
99c650f4f5
commit
7f7e88ab3d
202 changed files with 1 additions and 1 deletions
|
|
@ -0,0 +1,32 @@
|
|||
# Copyright 2014 Akretion - Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
# Copyright 2014 Tecnativa - Pedro M. Baeza
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class ResPartner(models.Model):
|
||||
_inherit = "res.partner"
|
||||
|
||||
supplier_payment_mode_id = fields.Many2one(
|
||||
comodel_name="account.payment.mode",
|
||||
company_dependent=True,
|
||||
check_company=True,
|
||||
domain="[('payment_type', '=', 'outbound'),"
|
||||
"('company_id', '=', current_company_id)]",
|
||||
help="Select the default payment mode for this supplier.",
|
||||
)
|
||||
customer_payment_mode_id = fields.Many2one(
|
||||
comodel_name="account.payment.mode",
|
||||
company_dependent=True,
|
||||
check_company=True,
|
||||
domain="[('payment_type', '=', 'inbound'),"
|
||||
"('company_id', '=', current_company_id)]",
|
||||
help="Select the default payment mode for this customer.",
|
||||
)
|
||||
|
||||
@api.model
|
||||
def _commercial_fields(self):
|
||||
res = super()._commercial_fields()
|
||||
res += ["supplier_payment_mode_id", "customer_payment_mode_id"]
|
||||
return res
|
||||
Loading…
Add table
Add a link
Reference in a new issue