oca-purchase/odoo-bringout-oca-purchase-workflow-purchase_security/purchase_security/models/res_partner.py
Ernad Husremovic 7378b233e9 Add oca-purchase submodule with 96 purchase modules moved from oca-workflow-process
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-30 18:00:40 +02:00

20 lines
529 B
Python

# Copyright 2024 Tecnativa - Víctor Martínez
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo import fields, models
class ResPartner(models.Model):
_inherit = "res.partner"
purchase_user_id = fields.Many2one(
comodel_name="res.users",
domain="[('share', '=', False)]",
string="Purchase representative",
index=True,
)
purchase_team_id = fields.Many2one(
comodel_name="purchase.team",
string="Purchase team",
index=True,
)