summaryrefslogtreecommitdiff
path: root/addons/website_sale/models/account_move.py
blob: 80a6b13203f1901610994af2ef4564d3e76731e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from odoo import fields, models, api


class AccountMove(models.Model):
    _inherit = 'account.move'

    website_id = fields.Many2one('website', related='partner_id.website_id', string='Website',
                                 help='Website through which this invoice was created.',
                                 store=True, readonly=True, tracking=True)