☰
Debian Codegraph
@
19.0.0+dfsg-1
/
/
addons
/
website_sale_loyalty
/
models
/
loyalty_card.py
☽
☼
addons/website_sale_loyalty/models/loyalty_card.py
code
plain
raw
symbols
SCIP
LGPL-3+
2004-2026 Odoo SA
debian/copyright
1
# Part of Odoo. See LICENSE file for full copyright and licensing details.
2
3
from
odoo
import
models
4
5
6
class
LoyaltyCard
(models.
Model
):
7
_inherit =
'loyalty.card'
8
9
def
action_coupon_share
(self):
10
self.
ensure_one
()
11
return
self.
env
[
'coupon.share'
].
create_share_action
(coupon=self)