[MIG] base_company_extension to v14
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
This commit is contained in:
@@ -9,6 +9,13 @@ from odoo import models, fields
|
||||
class ProductTemplate(models.Model):
|
||||
_inherit = 'product.template'
|
||||
|
||||
# restore v8 native field
|
||||
# https://github.com/odoo/odoo/blob/8.0/addons/product/product.py#L592
|
||||
# in v10, that field was defined in procurement_suggest, but we will
|
||||
# probably not port procurement_suggest because it is native in v14
|
||||
seller_id = fields.Many2one(
|
||||
'res.partner', related='seller_ids.name', string='Main Supplier')
|
||||
|
||||
# name = fields.Char(
|
||||
# track_visibility='onchange')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user