From c41eaf172238077bf01b1cd697db6006bb005936 Mon Sep 17 00:00:00 2001 From: Pierrick Brun Date: Thu, 5 Jul 2018 16:36:12 +0200 Subject: [PATCH] [ADD] dropoff_site_number field on the partner --- delivery_roulier/models/__init__.py | 1 + delivery_roulier/models/res_partner.py | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 delivery_roulier/models/res_partner.py diff --git a/delivery_roulier/models/__init__.py b/delivery_roulier/models/__init__.py index ba875968ab..895af1f5de 100644 --- a/delivery_roulier/models/__init__.py +++ b/delivery_roulier/models/__init__.py @@ -1,3 +1,4 @@ from . import stock_picking from . import stock_quant_package from . import stock_pack_operation +from . import res_partner diff --git a/delivery_roulier/models/res_partner.py b/delivery_roulier/models/res_partner.py new file mode 100644 index 0000000000..3b76a4c5d1 --- /dev/null +++ b/delivery_roulier/models/res_partner.py @@ -0,0 +1,13 @@ +# coding: utf-8 +# @author Pierrick Brun +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import models, fields + + +class ResPartner(models.Model): + _inherit = 'res.partner' + + dropoff_site_number = fields.Char( + help='the number used by the carrier to identify the dropoff site' + )