From 5b26df09853ea9a2361f6609653c2f66eee89172 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 ++++ delivery_roulier_laposte/data/delivery.xml | 78 ++++++++++++++++++++++ 3 files changed, 92 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' + ) diff --git a/delivery_roulier_laposte/data/delivery.xml b/delivery_roulier_laposte/data/delivery.xml index 6b4eccc244..b15101263f 100644 --- a/delivery_roulier_laposte/data/delivery.xml +++ b/delivery_roulier_laposte/data/delivery.xml @@ -226,5 +226,83 @@ + + Colissimo Point Retrait - Relais Pickup France + A2P + A2P + laposte + service + + + + + + + + + + + + + + + + + + + Colissimo Point Retrait - Bureau de Poste France + BPR + BPR + laposte + service + + + + + + + + + + + + + + + + + + + Colissimo Point Retrait - Relais Pickup Europe + CMT + CMT + laposte + service + + + + + + + + + + + + Colissimo Point Retrait - Bureau de Poste Europe + BDP + BDP + laposte + service + + + + + + + + + +