Replace the type subcontractor on the partner. Instead replace it by a property for a subcontracting location. The purpose is to have a simplier configuration. The user would just need to add the partner on the BoM in order to start a subcontracting process.
14 lines
474 B
Python
14 lines
474 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResPartner(models.Model):
|
|
_inherit = 'res.partner'
|
|
|
|
property_stock_subcontractor = fields.Many2one(
|
|
'stock.location', string="Subcontractor Location", company_dependent=True,
|
|
help="The stock location used as source and destination when sending\
|
|
goods to this contact during a subcontracting process.")
|