[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:
Alexis de Lattre
2020-12-15 18:34:20 +01:00
parent 6682c9e048
commit a90965109d
12 changed files with 30 additions and 18 deletions

View File

@@ -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')