Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][MIG] delivery_dropoff_site: Migration to 14.0 #771

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 130 additions & 0 deletions delivery_dropoff_site/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
=======================
Delivery Drop-off Sites
=======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:118f817e3d7e8c81d2378e9e9e547afacf6323e7c739c439c176af4cd6f73b16
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fdelivery--carrier-lightgray.png?logo=github
:target: https://github.com/OCA/delivery-carrier/tree/14.0/delivery_dropoff_site
:alt: OCA/delivery-carrier
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/delivery-carrier-14-0/delivery-carrier-14-0-delivery_dropoff_site
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/delivery-carrier&target_branch=14.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extend Odoo functionnalities, regarding delivery features to
add a new concept of drop-off Sites.

Main international carriers provide transportation services to specific areas
managed by them or by subcontractors.

Then, recipients come pick up their packages in these sites.

**Table of contents**

.. contents::
:local:

Configuration
=============

* To configure drop-off sites, users should be member of 'Sale / Manager' or
'Inventory / Manager'.

* To use this drop-off sites on sale orders, users should be member of
'Technical Settings / Addresses in Sales Orders'.

Usage
=====

* Go to *Sales* > *Configuration* > *Drop-off Sites*

.. figure:: https://raw.githubusercontent.com/OCA/delivery-carrier/14.0/delivery_dropoff_site/static/description/dropoff_site_tree.png
:width: 80 %
:align: center

* You can add create new drop-off sites, filling address.
you have the possilibity to generate geolocalization, base on the module
```base_geolocalize```

.. figure:: https://raw.githubusercontent.com/OCA/delivery-carrier/14.0/delivery_dropoff_site/static/description/dropoff_site_form.png
:width: 80 %
:align: center

* Optionaly, you can set opening hours.

.. figure:: https://raw.githubusercontent.com/OCA/delivery-carrier/14.0/delivery_dropoff_site/static/description/dropoff_site_form_calendar.png
:width: 80 %
:align: center

Then, in your sale order form, if you select a Delivery with drop-off sites
enabled, you can select in the delivery address an drop-off site, and
so use a new field Final recipitient to mention the name of partner that will
pick up the parcel in the dropoff site.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/delivery-carrier/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/delivery-carrier/issues/new?body=module:%20delivery_dropoff_site%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Akretion
* GRAP

Contributors
~~~~~~~~~~~~

* David BEAL <david.beal@akretion.com>
* Aymeric LECOMTE, akretion
* Sébastien BEAU <sebastien.beau@akretion.com>
* Sylvain LE GAL (https://twitter.com/legalsylvain)

Other credits
~~~~~~~~~~~~~

The development of this module has been financially supported by:

* GRAP, Groupement Régional Alimentaire de Proximité (http://www.grap.coop)

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/delivery-carrier <https://github.com/OCA/delivery-carrier/tree/14.0/delivery_dropoff_site>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions delivery_dropoff_site/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
37 changes: 37 additions & 0 deletions delivery_dropoff_site/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright (C) 2014 - Today: Akretion (http://www.akretion.com)
# Copyright (C) 2018 - Today: GRAP (http://www.grap.coop)
# @author Aymeric Lecomte <aymeric.lecomte@akretion.com>
# @author David BEAL <david.beal@akretion.com>
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Delivery Drop-off Sites",
"version": "14.0.1.0.0",
"author": "Akretion,GRAP,Odoo Community Association (OCA)",
"license": "AGPL-3",
"summary": "Send goods to sites in which customers come pick up package",
"category": "Delivery",
"depends": ["delivery", "base_geolocalize", "resource", "sale_stock"],
"website": "https://github.com/OCA/delivery-carrier",
"data": [
"security/ir.model.access.csv",
"views/view_dropoff_site.xml",
"views/view_sale_order.xml",
"views/view_stock_picking.xml",
"views/view_delivery_carrier.xml",
],
"demo": [
"demo/res_groups.xml",
"demo/resource_calendar.xml",
"demo/delivery_carrier.xml",
"demo/dropoff_site.xml",
],
"images": [
"static/description/dropoff_site_form.png",
"static/description/dropoff_site_form_calendar.png",
"static/description/dropoff_site_tree.png",
"static/description/sale_order_form.png",
],
"installable": True,
}
20 changes: 20 additions & 0 deletions delivery_dropoff_site/demo/delivery_carrier.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="product_product_delivery_drop_off" model="product.product">
<field name="name">Drop off method</field>
<field name="default_code">Delivery_010</field>
<field name="type">service</field>
<field name="categ_id" ref="delivery.product_category_deliveries" />
<field name="sale_ok" eval="False" />
<field name="purchase_ok" eval="False" />
<field name="list_price">20.0</field>
</record>
<record id="delivery_carrier" model="delivery.carrier">
<field name="name">Delivery With Drop-off Sites</field>
<field name="delivery_type">fixed</field>
<field name="with_dropoff_site" eval="True" />
<field name="fixed_price">30.0</field>
<field name="product_id" ref="product_product_delivery_drop_off" />
<field name="country_ids" eval="[(4, ref('base.fr')), (4, ref('base.be'))]" />
</record>
</odoo>
22 changes: 22 additions & 0 deletions delivery_dropoff_site/demo/dropoff_site.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="dropoff_cordonnerie_multiservice" model="dropoff.site">
<field name="name">Cordonnerie Multi Service</field>
<field name="code">CORD MS</field>
<field name="street">28 rue Monge</field>
<field name="zip">75005</field>
<field name="city">Paris</field>
<field name="country_id" ref="base.fr" />
<field name="carrier_id" ref="delivery_carrier" />
<field name="calendar_id" ref="calendar" />
</record>
<record id="dropoff_exoshoes" model="dropoff.site">
<field name="name">Exoshoes</field>
<field name="code">EXO</field>
<field name="street">6 rue des Capucins</field>
<field name="zip">69001</field>
<field name="city">Lyon</field>
<field name="country_id" ref="base.fr" />
<field name="carrier_id" ref="delivery_carrier" />
</record>
</odoo>
6 changes: 6 additions & 0 deletions delivery_dropoff_site/demo/res_groups.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="sale.group_delivery_invoice_address" model="res.groups">
<field name="users" eval="[(4, ref('base.user_root'))]" />
</record>
</odoo>
100 changes: 100 additions & 0 deletions delivery_dropoff_site/demo/resource_calendar.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="calendar" model="resource.calendar">
<field name="name">40 Hours/Week</field>
</record>
<record model="resource.calendar.attendance" id="calendar_attendance_mon1">
<field name="name">Monday morning</field>
<field name="dayofweek">0</field>
<field name="hour_from">08</field>
<field name="hour_to">12</field>
<field name="calendar_id" ref="calendar" />
</record>
<record model="resource.calendar.attendance" id="calendar_attendance_mon2">
<field name="name">Monday evening</field>
<field name="dayofweek">0</field>
<field name="hour_from">13</field>
<field name="hour_to">17</field>
<field name="calendar_id" ref="calendar" />
</record>
<record model="resource.calendar.attendance" id="calendar_attendance_tue1">
<field name="name">Tuesday morning</field>
<field name="dayofweek">1</field>
<field name="hour_from">08</field>
<field name="hour_to">12</field>
<field name="calendar_id" ref="calendar" />
</record>
<record model="resource.calendar.attendance" id="calendar_attendance_tue2">
<field name="name">Tuesday evening</field>
<field name="dayofweek">1</field>
<field name="hour_from">13</field>
<field name="hour_to">17</field>
<field name="calendar_id" ref="calendar" />
</record>
<record model="resource.calendar.attendance" id="calendar_attendance_wed1">
<field name="name">Wednesday morning</field>
<field name="dayofweek">2</field>
<field name="hour_from">08</field>
<field name="hour_to">12</field>
<field name="calendar_id" ref="calendar" />
</record>
<record model="resource.calendar.attendance" id="calendar_attendance_wed2">
<field name="name">Wednesday evening</field>
<field name="dayofweek">2</field>
<field name="hour_from">13</field>
<field name="hour_to">17</field>
<field name="calendar_id" ref="calendar" />
</record>
<record model="resource.calendar.attendance" id="calendar_attendance_thu1">
<field name="name">Thursday morning</field>
<field name="dayofweek">3</field>
<field name="hour_from">08</field>
<field name="hour_to">12</field>
<field name="calendar_id" ref="calendar" />
</record>
<record model="resource.calendar.attendance" id="calendar_attendance_thu2">
<field name="name">Thursday evening</field>
<field name="hour_from">13</field>
<field name="hour_to">17</field>
<field name="dayofweek">3</field>
<field name="calendar_id" ref="calendar" />
</record>
<record model="resource.calendar.attendance" id="calendar_attendance_fri1">
<field name="name">Friday morning</field>
<field name="dayofweek">4</field>
<field name="hour_from">08</field>
<field name="hour_to">12</field>
<field name="calendar_id" ref="calendar" />
</record>
<record model="resource.calendar.attendance" id="calendar_attendance_fri2">
<field name="name">Friday evening</field>
<field name="dayofweek">4</field>
<field name="hour_from">13</field>
<field name="hour_to">17</field>
<field name="calendar_id" ref="calendar" />
</record>
<record id="resource_analyst" model="resource.resource">
<field eval="100" name="time_efficiency" />
<field name="user_id" ref="base.user_root" />
<field name="name">Analyst</field>
<field eval="1" name="active" />
<field name="calendar_id" ref="calendar" />
<field name="resource_type">user</field>
</record>
<record id="resource_designer" model="resource.resource">
<field eval="100" name="time_efficiency" />
<field name="user_id" ref="base.user_demo" />
<field name="name">Designer</field>
<field eval="1" name="active" />
<field name="calendar_id" ref="calendar" />
<field name="resource_type">user</field>
</record>
<record id="resource_developer" model="resource.resource">
<field eval="100" name="time_efficiency" />
<field name="user_id" ref="base.user_demo" />
<field name="name">Developer</field>
<field eval="1" name="active" />
<field name="calendar_id" ref="calendar" />
<field name="resource_type">user</field>
</record>
</odoo>
Loading
Loading