Files
odoo_source/addons/pos_loyalty/models/loyalty_mail.py
T
William Braeckman 26e79061f5 [ADD] pos_loyalty: manage loyalty in PoS
This module was moved from enterprise to community and now includes
pos_coupon and pos_gift_card aswell.

TaskId-2675382
2022-04-08 11:04:44 +02:00

12 lines
437 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class LoyaltyMail(models.Model):
_inherit = 'loyalty.mail'
pos_report_print_id = fields.Many2one('ir.actions.report', string="Print Report", domain=[('model', '=', 'loyalty.card')],
help="The report action to be executed when creating a coupon/gift card/loyalty card in the PoS.",
)