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

[15.0] [MIG] connector_routific: Migration to 15.0 #544

Merged
merged 3 commits into from
Nov 21, 2022
Merged
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
154 changes: 154 additions & 0 deletions connector_routific/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
==================
Routific Connector
==================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |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/13.0/connector_routific
: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-13-0/delivery-carrier-13-0-connector_routific
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/99/13.0
:alt: Try me on Runbot

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

This module is a connector between Odoo and Routific Platform for allow the
optimization of routes.

**Table of contents**

.. contents::
:local:

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

To make the connection with Routific we need to create new entries of the Settings model
on Routific. To make this we have to follow the next steps:

#. Go to *Routific > Settings*
#. Create a new entry
#. Set a name
#. Set your Token Key for establish the connection
#. Select the allowed operation type for filter the pickings

The default URLs and address format are correct for Routific Platform connection and
geolocatization, but can be changed if they change sometime.

The options on *Project* section are the default settings for all the projects created
with this Settings.

We need to define drivers on our instance. We can follow next steps:

#. Go to *Contacts*
#. Create a new one
#. Check the option **Is driver** at *Routific* section
#. Check the option **Driver active**

If we want to divide the charge filtering by types of products, we can check at
*Inventory > Configuration > Attributes* what attribute defines the type by checking the
field **Is routific type**. Doing this, now you can select the types allowed by a
driver at Driver's sheet.

Usage
=====

Project Creation
~~~~~~~~~~~~~~~~
For create a project, we can do it by 2 ways:

The fist one is by going to *Inventory > Operations > Transfers*:

#. Select the pickings that has to be served
#. On *Action* menu select *Create Routific Project*
#. Configure what you want
#. Press *Create*

(Note) By default all active drivers are selected but you can delete the drivers that
you don't need for the delivery.

The second one is by going to *Routific > Projects*:

#. Press *Create*
#. Select the affected pickings
#. You can delete the non-needed drivers
#. *Save* the project

Sending Information
~~~~~~~~~~~~~~~~~~~
Now you can send the information to Routific by pressing the button
**Send information to Routific**.

Once the info is sent to routific, you should optimice the route at
`Routific Platform <https://routific.com/>`_

You can add new stops to the route by adding new pickings and clicking to
*Send new stops*

Getting Solution
~~~~~~~~~~~~~~~~
Now you can get the solution by clicking at **Process solution**

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/delivery-carrier/issues/new?body=module:%20connector_routific%0Aversion:%2013.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
~~~~~~~

* Tecnativa

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

* `Tecnativa <https://www.tecnativa.com>`_:

* Carlos Roca
* Sergio Teruel

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.

.. |maintainer-CarlosRoca13| image:: https://github.com/CarlosRoca13.png?size=40px
:target: https://github.com/CarlosRoca13
:alt: CarlosRoca13

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-CarlosRoca13|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions connector_routific/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
29 changes: 29 additions & 0 deletions connector_routific/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
{
"name": "Routific Connector",
"summary": "Connector for Routific Platform",
"version": "15.0.1.0.0",
"development_status": "Production/Stable",
"category": "Inventory",
"website": "https://github.com/OCA/delivery-carrier",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"maintainers": ["CarlosRoca13"],
"depends": ["stock", "phone_validation"],
"external_dependencies": {"python": ["lxml", "email_validator"]},
"data": [
"data/sequence.xml",
"security/ir.model.access.csv",
"views/product_attribute_views.xml",
"views/routific_config_views.xml",
"views/routific_driver_views.xml",
"views/routific_project_views.xml",
"views/res_partner_view.xml",
"wizards/routific_project_creator_view.xml",
"views/routific_project_driver_view.xml",
"views/stock_picking_views.xml",
],
}
11 changes: 11 additions & 0 deletions connector_routific/data/sequence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Copyright 2021 Tecnativa - Carlos Roca
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<record id="seq_routific_project" model="ir.sequence">
<field name="name">Routific sequence</field>
<field name="code">routific.project</field>
<field name="prefix">RP/</field>
<field name="padding" eval="7" />
<field eval="False" name="company_id" />
</record>
</odoo>
Loading