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

[17.0][MIG] delivery_carrier_customer_info: Migration to 17.0 #870

Open
wants to merge 9 commits into
base: 17.0
Choose a base branch
from
Open
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
78 changes: 78 additions & 0 deletions delivery_carrier_customer_info/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
===========================================
Delivery Indications by Customer to Carrier
===========================================

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

.. |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/17.0/delivery_carrier_customer_info
: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-17-0/delivery-carrier-17-0-delivery_carrier_customer_info
: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=17.0
:alt: Try me on Runboat

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

This module allows to define customer delivery indications sent to the
carrier to ease the delivery.

**Table of contents**

.. contents::
:local:

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_carrier_customer_info%0Aversion:%2017.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
-------

* Camptocamp

Contributors
------------

- Carlos Serra-Toro
- Sébastien Alix <sebastien.alix@camptocamp.com>

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/17.0/delivery_carrier_customer_info>`_ 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_carrier_customer_info/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
21 changes: 21 additions & 0 deletions delivery_carrier_customer_info/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2021 Camptocamp SA
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl)
{
"name": "Delivery Indications by Customer to Carrier",
"summary": "Send delivery notice to the shipper from any operation.",
"version": "17.0.1.0.0",
"development_status": "Beta",
"category": "Delivery",
"website": "https://github.com/OCA/delivery-carrier",
"author": "Camptocamp, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["sales_team", "stock"],
"data": [
"security/ir.model.access.csv",
"views/res_partner.xml",
"views/res_partner_delivery_info.xml",
"views/menus.xml",
],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * delivery_carrier_customer_info
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__active
msgid "Active"
msgstr ""

#. module: delivery_carrier_customer_info
#: model_terms:ir.ui.view,arch_db:delivery_carrier_customer_info.res_partner_delivery_info_form_view
#: model_terms:ir.ui.view,arch_db:delivery_carrier_customer_info.res_partner_delivery_info_search_view
msgid "Archived"
msgstr ""

#. module: delivery_carrier_customer_info
#: model:ir.model,name:delivery_carrier_customer_info.model_res_partner
msgid "Contact"
msgstr ""

#. module: delivery_carrier_customer_info
#: model_terms:ir.actions.act_window,help:delivery_carrier_customer_info.action_res_partner_delivery_info
msgid ""
"Create a delivery indication to the carriers, to be used by the customers."
msgstr ""

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__create_uid
msgid "Created by"
msgstr ""

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__create_date
msgid "Created on"
msgstr ""

#. module: delivery_carrier_customer_info
#: model:ir.actions.act_window,name:delivery_carrier_customer_info.action_res_partner_delivery_info
#: model:ir.model,name:delivery_carrier_customer_info.model_res_partner_delivery_info
#: model:ir.ui.menu,name:delivery_carrier_customer_info.menu_action_res_partner_delivery_info
msgid "Delivery Indications by Customer to Carrier"
msgstr ""

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner__display_name
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__display_name
msgid "Display Name"
msgstr ""

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner__id
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__id
msgid "ID"
msgstr ""

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner__delivery_info_id
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_users__delivery_info_id
msgid "Info for Delivery Carrier"
msgstr ""

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner____last_update
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info____last_update
msgid "Last Modified on"
msgstr ""

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__write_uid
msgid "Last Updated by"
msgstr ""

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__write_date
msgid "Last Updated on"
msgstr ""

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__name
msgid "Name"
msgstr ""

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__text
msgid "Text"
msgstr ""
102 changes: 102 additions & 0 deletions delivery_carrier_customer_info/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * delivery_carrier_customer_info
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-20 22:33+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__active
msgid "Active"
msgstr "Activo"

#. module: delivery_carrier_customer_info
#: model_terms:ir.ui.view,arch_db:delivery_carrier_customer_info.res_partner_delivery_info_form_view
#: model_terms:ir.ui.view,arch_db:delivery_carrier_customer_info.res_partner_delivery_info_search_view
msgid "Archived"
msgstr "Archivado"

#. module: delivery_carrier_customer_info
#: model:ir.model,name:delivery_carrier_customer_info.model_res_partner
msgid "Contact"
msgstr "Contacto"

#. module: delivery_carrier_customer_info
#: model_terms:ir.actions.act_window,help:delivery_carrier_customer_info.action_res_partner_delivery_info
msgid ""
"Create a delivery indication to the carriers, to be used by the customers."
msgstr ""
"Crear una indicación de entrega a los transportistas, para que la utilicen "
"los clientes."

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__create_uid
msgid "Created by"
msgstr "Creado por"

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__create_date
msgid "Created on"
msgstr "Creado el"

#. module: delivery_carrier_customer_info
#: model:ir.actions.act_window,name:delivery_carrier_customer_info.action_res_partner_delivery_info
#: model:ir.model,name:delivery_carrier_customer_info.model_res_partner_delivery_info
#: model:ir.ui.menu,name:delivery_carrier_customer_info.menu_action_res_partner_delivery_info
msgid "Delivery Indications by Customer to Carrier"
msgstr "Indicaciones de Entrega del Cliente al Transportista"

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner__display_name
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__display_name
msgid "Display Name"
msgstr "Mostrar Nombre"

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner__id
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__id
msgid "ID"
msgstr "ID"

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner__delivery_info_id
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_users__delivery_info_id
msgid "Info for Delivery Carrier"
msgstr "Información para el Repartidor"

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner____last_update
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info____last_update
msgid "Last Modified on"
msgstr "Última Modificación el"

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__write_uid
msgid "Last Updated by"
msgstr "Última Actualización por"

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__write_date
msgid "Last Updated on"
msgstr "Última Actualización el"

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__name
msgid "Name"
msgstr "Nombre"

#. module: delivery_carrier_customer_info
#: model:ir.model.fields,field_description:delivery_carrier_customer_info.field_res_partner_delivery_info__text
msgid "Text"
msgstr "Texto"
2 changes: 2 additions & 0 deletions delivery_carrier_customer_info/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import res_partner_delivery_info
from . import res_partner
13 changes: 13 additions & 0 deletions delivery_carrier_customer_info/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2021 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
from odoo import fields, models


class ResPartner(models.Model):
_inherit = "res.partner"

delivery_info_id = fields.Many2one(
"res.partner.delivery.info",
ondelete="restrict",
string="Info for Delivery Carrier",
)
12 changes: 12 additions & 0 deletions delivery_carrier_customer_info/models/res_partner_delivery_info.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2021 Camptocamp SA (https://www.camptocamp.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models


class ResPartnerDeliveryInfo(models.Model):
_name = "res.partner.delivery.info"
_description = "Delivery Indications by Customer to Carrier"

name = fields.Char(required=True)
text = fields.Text(required=True)
active = fields.Boolean(default=True)
3 changes: 3 additions & 0 deletions delivery_carrier_customer_info/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
2 changes: 2 additions & 0 deletions delivery_carrier_customer_info/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Carlos Serra-Toro
- Sébastien Alix \<<sebastien.alix@camptocamp.com>\>
2 changes: 2 additions & 0 deletions delivery_carrier_customer_info/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module allows to define customer delivery indications sent to the
carrier to ease the delivery.
4 changes: 4 additions & 0 deletions delivery_carrier_customer_info/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_res_partner_delivery_info_info_user,res.partner.delivery.info.user,model_res_partner_delivery_info,stock.group_stock_user,1,0,0,0
access_res_partner_delivery_info_manager,res.partner.delivery.info.manager,model_res_partner_delivery_info,stock.group_stock_manager,1,1,1,1
access_res_partner_delivery_info_salesman,res.partner.delivery.info.salesman,model_res_partner_delivery_info,sales_team.group_sale_salesman,1,1,1,0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading