account_journal.py 817 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# Copyright (C) 2020 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openerp import fields, models


class AccountJournal(models.Model):
    _inherit = 'account.journal'

    meal_voucher_type = fields.Selection(
        string="Meal Voucher Type",
        selection=[
            ("paper", "Paper"),
            ("dematerialized", "Dematerialized"),
            ("mixed", "Credit Card / Dematerialized"),
        ],
    )

    meal_voucher_mixed_text = fields.Char(
        string="Text for Mixed journal",
        help="Text that will be displayed in the point of sale"
        " if the journal is a mixed journal (Credit Card / "
        " Dematerialized) for the dematerialized button.")