website_sale_stock/models/stock_picking.py

13 lines
457 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class StockPicking(models.Model):
_inherit = 'stock.picking'
website_id = fields.Many2one('website', related='sale_id.website_id', string='Website',
help='Website where this order has been placed, for eCommerce orders.',
store=True, readonly=True)