Skip to content
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
62 changes: 62 additions & 0 deletions stock_outgoing_shipment_report/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
==============================
Stock Outgoing Shipment Report
==============================

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

.. |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-qrtl%2Fhls--custom-lightgray.png?logo=github
:target: https://github.com/qrtl/hls-custom/tree/18.0/stock_outgoing_shipment_report
:alt: qrtl/hls-custom

|badge1| |badge2| |badge3|

Generates outgoing shipment reports from stock pickings for export to
external systems.

- Creates report lines from delivery order moves with partner, carrier,
and product details
- Formats dates (dispatch, delivery, expiry) and truncates fields to
required lengths
- Validates warehouse lot numbers to ASCII characters only

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/qrtl/hls-custom/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/qrtl/hls-custom/issues/new?body=module:%20stock_outgoing_shipment_report%0Aversion:%2018.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
-------

* Quartile

Maintainers
-----------

This module is part of the `qrtl/hls-custom <https://github.com/qrtl/hls-custom/tree/18.0/stock_outgoing_shipment_report>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions stock_outgoing_shipment_report/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
25 changes: 25 additions & 0 deletions stock_outgoing_shipment_report/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2020-2021 Quartile (https://www.quartile.co)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Stock Outgoing Shipment Report",
"version": "18.0.1.0.0",
"category": "Stock",
"website": "https://www.quartile.co",
"author": "Quartile",
"license": "AGPL-3",
"installable": True,
"depends": [
"delivery",
"sale_order_line_client_order_ref",
"sale_order_line_note",
"stock_secondary_unit",
"sale_order_dispatch_date",
],
"data": [
"security/ir.model.access.csv",
"data/stock_outgoing_shipment_report_data.xml",
"views/delivery_carrier_views.xml",
"views/res_partner_views.xml",
"views/stock_outgoing_shipment_report_views.xml",
],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record
model="ir.actions.server"
id="action_generate_stock_outgoing_shipment_report"
>
<field name="name">Generate Delivery Data</field>
<field name="model_id" ref="stock.model_stock_picking" />
<field name="binding_model_id" ref="stock.model_stock_picking" />
<field name="state">code</field>
<field name="code">
if records:
action = records.generate_stock_outgoing_shipment_report()
</field>
</record>
</odoo>
251 changes: 251 additions & 0 deletions stock_outgoing_shipment_report/i18n/ja.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_outgoing_shipment_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-07-27 08:53+0000\n"
"PO-Revision-Date: 2021-07-27 08:53+0000\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: stock_outgoing_shipment_report
#: code:addons/stock_outgoing_shipment_report/models/stock_outgoing_shipment_report.py:97
#, python-format
msgid "%s should be at most %s digit(s)."
msgstr "%sには%s桁までを入れてください。"

#. module: stock_outgoing_shipment_report
#: code:addons/stock_outgoing_shipment_report/models/stock_outgoing_shipment_report.py:133
#, python-format
msgid "Please key in the warehouse lot in ASCII characters."
msgstr "倉庫会社ロット№は半角英数字またはハイフンで入力してください。"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__partner_address
msgid "Address"
msgstr "住所"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__carrier_id
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__carrier_name
#: model_terms:ir.ui.view,arch_db:stock_outgoing_shipment_report.view_stock_outgoing_shipment_report_search
msgid "Carrier"
msgstr "配送会社"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__case_qty
msgid "Case Quantity"
msgstr "出庫数量(ケース)"

#. module: stock_outgoing_shipment_report
#: model:ir.model,name:stock_outgoing_shipment_report.model_res_partner
msgid "Contact"
msgstr "連絡先"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__create_uid
msgid "Created by"
msgstr "作成者"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__create_date
msgid "Created on"
msgstr "作成日"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__partner_name
msgid "Customer"
msgstr "届先名"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__partner_ref
msgid "Customer Code"
msgstr "届先コード"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__customer_delivery_note
msgid "Customer Delivery Note"
msgstr "納品指定事項"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__client_order_ref
msgid "Customer Reference"
msgstr "発注番号"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__delivery_date
msgid "Delivery Date"
msgstr "納品日"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__delivery_division
msgid "Delivery Division"
msgstr "出庫止区分"

#. module: stock_outgoing_shipment_report
#: model:ir.model,name:stock_outgoing_shipment_report.model_delivery_carrier
msgid "Delivery Methods"
msgstr "配送方法"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_res_partner__delivery_time
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_res_users__delivery_time
msgid "Delivery Time"
msgstr "納品指定事項"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__dispatch_date
msgid "Dispatch Date"
msgstr "出庫日"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__display_name
msgid "Display Name"
msgstr "表示名"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__expiry_date
#: model_terms:ir.ui.view,arch_db:stock_outgoing_shipment_report.view_stock_outgoing_shipment_report_tree
msgid "Expiry Date"
msgstr "賞味期限"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__expiry_date_edit
msgid "Expiry Date (Edit)"
msgstr "賞味期限 (編集)"

#. module: stock_outgoing_shipment_report
#: model:ir.actions.server,name:stock_outgoing_shipment_report.action_generate_stock_outgoing_shipment_report
msgid "Generate Delivery Data"
msgstr "出庫指示データ出力"

#. module: stock_outgoing_shipment_report
#: model_terms:ir.ui.view,arch_db:stock_outgoing_shipment_report.view_stock_outgoing_shipment_report_search
msgid "Group By"
msgstr "グループ化"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__id
msgid "ID"
msgstr ""

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report____last_update
msgid "Last Modified on"
msgstr "最終更新日"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__write_uid
msgid "Last Updated by"
msgstr "最終更新者"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__write_date
msgid "Last Updated on"
msgstr "最終更新日"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__memo
msgid "Memo"
msgstr "備考"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__reference
msgid "Reference"
msgstr "入庫名義"

#. module: stock_outgoing_shipment_report
#: code:addons/stock_outgoing_shipment_report/models/stock_outgoing_shipment_report.py:107
#, python-format
msgid "Only numbers are allowed for %s field."
msgstr "%sには数値のみで入力してください。"

#. module: stock_outgoing_shipment_report
#: model_terms:ir.ui.view,arch_db:stock_outgoing_shipment_report.view_stock_outgoing_shipment_report_search
msgid "Outgoing Moves"
msgstr "出荷明細"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__partner_phone
msgid "Phone"
msgstr "電話番号"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__product_code
msgid "Product Code"
msgstr "商品コード"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__product_name
msgid "Product Name"
msgstr "品名"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__separate_qty
msgid "Separate Quantity"
msgstr "出庫数量(バラ)"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_delivery_carrier__shipping_mode
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__shipping_mode
msgid "Shipping Mode"
msgstr "事由"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__move_id
msgid "Stock Move"
msgstr "在庫移動"

#. module: stock_outgoing_shipment_report
#: model:ir.actions.act_window,name:stock_outgoing_shipment_report.action_stock_outgoing_shipment_report
#: model:ir.ui.menu,name:stock_outgoing_shipment_report.stock_outgoing_shipment_report_menu
#: model_terms:ir.ui.view,arch_db:stock_outgoing_shipment_report.view_stock_outgoing_shipment_report_tree
msgid "Stock Outgoing Shipment Report"
msgstr "出庫指示データ"

#. module: stock_outgoing_shipment_report
#: model:ir.model,name:stock_outgoing_shipment_report.model_stock_picking
msgid "Transfer"
msgstr "運送"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__lot_num
msgid "Warehouse Company Lot"
msgstr "倉庫会社ロット№"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__lot_branch_num
msgid "Warehouse Company Lot Branch"
msgstr "倉庫会社ロット№枝番"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__partner_zip
msgid "Zip"
msgstr "郵便番号"

#. module: stock_outgoing_shipment_report
#: model:ir.model,name:stock_outgoing_shipment_report.model_stock_outgoing_shipment_report
msgid "stock.outgoing.shipment.report"
msgstr ""

#. module: stock_outgoing_shipment_report
#: model_terms:ir.ui.view,arch_db:stock_outgoing_shipment_report.view_stock_outgoing_shipment_report_search
msgid "Created Today"
msgstr "本日作成"

#. module: stock_outgoing_shipment_report
#: model:ir.model.fields,field_description:stock_outgoing_shipment_report.field_stock_outgoing_shipment_report__date_created
msgid "Created Date (Date Only)"
msgstr "作成日(日付のみ)"

#. module: stock_outgoing_shipment_report
#: model_terms:ir.ui.view,arch_db:stock_outgoing_shipment_report.view_stock_outgoing_shipment_report_search
msgid "Created Date"
msgstr "作成日"
4 changes: 4 additions & 0 deletions stock_outgoing_shipment_report/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from . import delivery_carrier
from . import res_partner
from . import stock_outgoing_shipment_report
from . import stock_picking
10 changes: 10 additions & 0 deletions stock_outgoing_shipment_report/models/delivery_carrier.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2020 Quartile (https://www.quartile.co)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class DeliveryCarrier(models.Model):
_inherit = "delivery.carrier"

shipping_mode = fields.Char(size=2)
Loading
Loading