You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
630 B
18 lines
630 B
# -*- coding: utf-8 -*-
|
|
# Copyright 2014-2019 Therp BV <https://therp.nl>.
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResPartner(models.Model):
|
|
_inherit = 'res.partner'
|
|
|
|
subscription_ids = fields.One2many(
|
|
comodel_name='account.analytic.invoice.line',
|
|
inverse_name='partner_id',
|
|
domain=[('publication', '=', True)],
|
|
string='Subscription contract lines')
|
|
distribution_list_ids = fields.One2many(
|
|
comodel_name='publication.distribution.list',
|
|
inverse_name='partner_id',
|
|
string='Publications received')
|