# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 import collections import datetime import hashlib import pytz import threading import re from email.utils import formataddr import requests from lxml import etree from werkzeug import urls from odoo import api, fields, models, tools, SUPERUSER_ID, _ from odoo.modules import get_module_resource from odoo.osv.expression import get_unaccent_wrapper from odoo.exceptions import UserError, ValidationError from odoo.tools import pycompat class Partner(models.Model): _inherit = 'res.partner' customer = fields.Boolean(string='Is a Customer', default=True, help="Check this box if this contact is a customer. It can be selected in sales orders.") supplier = fields.Boolean(string='Is a Vendor', help="Check this box if this contact is a vendor. It can be selected in purchase orders.")