Skip to content
Draft
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
92 changes: 92 additions & 0 deletions purchase_container/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
==================
Purchase Container
==================

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

.. |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%2Fpurchase--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/purchase-workflow/tree/16.0/purchase_container
:alt: OCA/purchase-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_container
: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/purchase-workflow&target_branch=16.0
:alt: Try me on Runboat

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

Add containers to purchase orders and stock pickings.

|Purchase container image|

.. |Purchase container image| image:: https://raw.githubusercontent.com/OCA/purchase-workflow/16.0/purchase_container/static/description/img.png

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/purchase-workflow/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/purchase-workflow/issues/new?body=module:%20purchase_container%0Aversion:%2016.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
* Kencove

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

- Akretion

- Olivier Nibart
- Mathieu Delva

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-nayatec| image:: https://github.com/nayatec.png?size=40px
:target: https://github.com/nayatec
:alt: nayatec

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

|maintainer-nayatec|

This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/16.0/purchase_container>`_ 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 purchase_container/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
28 changes: 28 additions & 0 deletions purchase_container/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "Purchase Container",
"summary": """Add containers to purchase orders and stock pickings.""",
"version": "16.0.1.3.0",
"license": "AGPL-3",
"maintainers": ["nayatec"],
"author": "Akretion, Kencove, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/purchase-workflow",
"depends": [
"delivery",
"purchase_stock",
"stock",
"stock_landed_costs",
],
"data": [
"security/ir.model.access.csv",
"data/container.type.csv",
"data/container_document_type.xml",
"data/cron_data.xml",
"views/container_cost_line.xml",
"views/container_document.xml",
"views/container_line.xml",
"views/container_type.xml",
"views/purchase.xml",
"views/purchase_container.xml",
"views/stock_picking.xml",
],
}
6 changes: 6 additions & 0 deletions purchase_container/data/container.type.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
id,name
container_20,20'
container_40,40'
container_40HC,40' HC
container_lcl,LCL
container_lcl_air,LCL Air
91 changes: 91 additions & 0 deletions purchase_container/data/container_document_type.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?xml version='1.0' encoding='utf-8' ?>
<odoo noupdate="1">
<!-- Common shipping document types -->
<record id="document_type_commercial_invoice" model="container.document.type">
<field name="name">Commercial Invoice</field>
<field name="sequence">10</field>
<field name="required">True</field>
<field
name="description"
>Commercial invoice for customs clearance showing value and description of goods.</field>
</record>

<record id="document_type_packing_list" model="container.document.type">
<field name="name">Packing List</field>
<field name="sequence">20</field>
<field name="required">True</field>
<field
name="description"
>Detailed list of contents, cartons, weights, and dimensions.</field>
</record>

<record id="document_type_bill_of_lading" model="container.document.type">
<field name="name">Bill of Lading (B/L)</field>
<field name="sequence">30</field>
<field name="required">True</field>
<field
name="description"
>Original bill of lading from carrier - document of title for cargo.</field>
</record>

<record id="document_type_certificate_origin" model="container.document.type">
<field name="name">Certificate of Origin</field>
<field name="sequence">40</field>
<field name="required">False</field>
<field
name="description"
>Document certifying country of origin for preferential duty rates.</field>
</record>

<record id="document_type_customs_entry" model="container.document.type">
<field name="name">Customs Entry</field>
<field name="sequence">50</field>
<field name="required">False</field>
<field
name="description"
>Customs entry documentation and duty payment confirmation.</field>
</record>

<record id="document_type_insurance_certificate" model="container.document.type">
<field name="name">Insurance Certificate</field>
<field name="sequence">60</field>
<field name="required">False</field>
<field name="description">Marine cargo insurance certificate.</field>
</record>

<record id="document_type_isf" model="container.document.type">
<field name="name">ISF (10+2)</field>
<field name="sequence">70</field>
<field name="required">False</field>
<field
name="description"
>Importer Security Filing for US-bound shipments.</field>
</record>

<record id="document_type_arrival_notice" model="container.document.type">
<field name="name">Arrival Notice</field>
<field name="sequence">80</field>
<field name="required">False</field>
<field
name="description"
>Notification from carrier of vessel arrival at port.</field>
</record>

<record id="document_type_delivery_order" model="container.document.type">
<field name="name">Delivery Order</field>
<field name="sequence">90</field>
<field name="required">False</field>
<field
name="description"
>Order authorizing release of cargo from terminal.</field>
</record>

<record id="document_type_inspection_report" model="container.document.type">
<field name="name">Inspection Report</field>
<field name="sequence">100</field>
<field name="required">False</field>
<field
name="description"
>Pre-shipment or upon arrival inspection report.</field>
</record>
</odoo>
14 changes: 14 additions & 0 deletions purchase_container/data/cron_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<odoo noupdate="1">
<record id="ir_cron_recompute_purchase_container_state" model="ir.cron">
<field name="name">Recompute purchase container state</field>
<field name="model_id" ref="purchase_container.model_purchase_container" />
<field name="user_id" ref="base.user_root" />
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="code">
records = model.search([("state", "in", ["waiting", "transit"])])
if records:
records._compute_state()
</field>
</record>
</odoo>
Loading
Loading