product_usability: add seller_id field base_usability: write/create rights on res.partner.title to base.group_system (instead of partner manager) sale_stock_usability: move warehouse_id to top stock_usabiluty: type on product set to 'product' by default
16 lines
499 B
Python
16 lines
499 B
Python
# Copyright 2016-2020 Akretion France
|
|
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ProductTemplate(models.Model):
|
|
_inherit = 'product.template'
|
|
|
|
tracking = fields.Selection(tracking=True)
|
|
sale_delay = fields.Float(tracking=True)
|
|
# the 'stock' module adds 'product' in type...
|
|
# but forgets to make it the default
|
|
type = fields.Selection(default='product')
|