22 lines
744 B
Python
22 lines
744 B
Python
# Copyright 2014-2021 Barroux Abbey (http://www.barroux.org)
|
|
# Copyright 2014-2021 Akretion France (http://www.akretion.com/)
|
|
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResUsers(models.Model):
|
|
_inherit = "res.users"
|
|
|
|
# begin with context_ to allow user to change it by himself
|
|
context_donation_campaign_id = fields.Many2one(
|
|
"donation.campaign", "Current Donation Campaign"
|
|
)
|
|
context_donation_payment_method_line_id = fields.Many2one(
|
|
"account.payment.method.line",
|
|
"Current Donation Payment Mode",
|
|
domain=[("donation", "=", True)],
|
|
company_dependent=True,
|
|
)
|