Skip to content
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
100 changes: 100 additions & 0 deletions printing_auto_stock_picking/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===========================
Printing Auto Stock Picking
===========================

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

.. |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/license-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%2Fstock--logistics--reporting-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-reporting/tree/19.0/printing_auto_stock_picking
:alt: OCA/stock-logistics-reporting
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-reporting-19-0/stock-logistics-reporting-19-0-printing_auto_stock_picking
: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/stock-logistics-reporting&target_branch=19.0
:alt: Try me on Runboat

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

When a picking is done, automatically trigger the printing of some
documents. This can be used to print a delivery slip (report) or labels
received from the carrier (attachment).

**Table of contents**

.. contents::
:local:

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

Go to the Operation Type and configure which report or attachment to
print.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-reporting/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/stock-logistics-reporting/issues/new?body=module:%20printing_auto_stock_picking%0Aversion:%2019.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
-------

* BCIM
* MT Software

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

- Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
- Michael Tietz (MT Software) <mtietz@mt-software.de>
- Camptocamp
- Christopher Hansen <christopher.hansen@raumschmiede.de>

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

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

|maintainer-jbaudoux|

This module is part of the `OCA/stock-logistics-reporting <https://github.com/OCA/stock-logistics-reporting/tree/19.0/printing_auto_stock_picking>`_ 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 printing_auto_stock_picking/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
22 changes: 22 additions & 0 deletions printing_auto_stock_picking/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2022 Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Printing Auto Stock Picking",
"author": "BCIM, MT Software, Odoo Community Association (OCA)",
"maintainers": ["jbaudoux"],
"category": "Warehouse Management",
"data": [
"security/ir.model.access.csv",
"security/ir_rule.xml",
"views/stock_picking.xml",
"views/stock_picking_type.xml",
],
"depends": [
"stock",
"printing_auto_base",
],
"license": "AGPL-3",
"version": "19.0.1.0.0",
"website": "https://github.com/OCA/stock-logistics-reporting",
}
53 changes: 53 additions & 0 deletions printing_auto_stock_picking/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * printing_auto_stock_picking
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-07-28 09:25+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\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 5.10.4\n"

#. module: printing_auto_stock_picking
#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking__auto_printing_ids
#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking_type__auto_printing_ids
#: model_terms:ir.ui.view,arch_db:printing_auto_stock_picking.view_picking_type_form_inherit
msgid "Auto Printing Configuration"
msgstr "Configurazione stampa automatica"

#. module: printing_auto_stock_picking
#: model:ir.model,name:printing_auto_stock_picking.model_stock_picking_type
msgid "Picking Type"
msgstr "Tipo prelievo"

#. module: printing_auto_stock_picking
#: model_terms:ir.ui.view,arch_db:printing_auto_stock_picking.view_picking_form
msgid "Print documents"
msgstr "Stampa documenti"

#. module: printing_auto_stock_picking
#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking__printing_auto_error
msgid "Printing error"
msgstr "Errore di stampa"

#. module: printing_auto_stock_picking
#: model:ir.model,name:printing_auto_stock_picking.model_stock_picking
msgid "Transfer"
msgstr "Trasferimento"

#. module: printing_auto_stock_picking
#: model_terms:ir.ui.view,arch_db:printing_auto_stock_picking.view_picking_form
msgid ""
"Unable to print the documents: the CUPS server is maybe not available, or "
"printers are not configured properly. Error:"
msgstr ""
"Impossibile stampare i documenti: il server CUPS non è disponibile o o le "
"stampanti non sono configurate correttamente. Errore:"
48 changes: 48 additions & 0 deletions printing_auto_stock_picking/i18n/printing_auto_stock_picking.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * printing_auto_stock_picking
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.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: printing_auto_stock_picking
#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking__auto_printing_ids
#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking_type__auto_printing_ids
#: model_terms:ir.ui.view,arch_db:printing_auto_stock_picking.view_picking_type_form_inherit
msgid "Auto Printing Configuration"
msgstr ""

#. module: printing_auto_stock_picking
#: model:ir.model,name:printing_auto_stock_picking.model_stock_picking_type
msgid "Picking Type"
msgstr ""

#. module: printing_auto_stock_picking
#: model_terms:ir.ui.view,arch_db:printing_auto_stock_picking.view_picking_form
msgid "Print documents"
msgstr ""

#. module: printing_auto_stock_picking
#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking__printing_auto_error
msgid "Printing error"
msgstr ""

#. module: printing_auto_stock_picking
#: model:ir.model,name:printing_auto_stock_picking.model_stock_picking
msgid "Transfer"
msgstr ""

#. module: printing_auto_stock_picking
#: model_terms:ir.ui.view,arch_db:printing_auto_stock_picking.view_picking_form
msgid ""
"Unable to print the documents: the CUPS server is maybe not available, or "
"printers are not configured properly. Error:"
msgstr ""
2 changes: 2 additions & 0 deletions printing_auto_stock_picking/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import stock_picking
from . import stock_picking_type
19 changes: 19 additions & 0 deletions printing_auto_stock_picking/models/stock_picking.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2022 Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
# Copyright 2022 Michael Tietz (MT Software) <mtietz@mt-software.de>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class StockPicking(models.Model):
_name = "stock.picking"
_inherit = ["stock.picking", "printing.auto.mixin"]

auto_printing_ids = fields.Many2many(
"printing.auto", related="picking_type_id.auto_printing_ids"
)

def _action_done(self):
result = super()._action_done()
self.handle_print_auto()
return result
14 changes: 14 additions & 0 deletions printing_auto_stock_picking/models/stock_picking_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2022 Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
# Copyright 2022 Michael Tietz (MT Software) <mtietz@mt-software.de>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class StockPickingType(models.Model):
_inherit = "stock.picking.type"

auto_printing_ids = fields.Many2many(
"printing.auto",
string="Auto Printing Configuration",
)
3 changes: 3 additions & 0 deletions printing_auto_stock_picking/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 printing_auto_stock_picking/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Go to the Operation Type and configure which report or attachment to
print.
4 changes: 4 additions & 0 deletions printing_auto_stock_picking/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Jacques-Etienne Baudoux (BCIM) \<<je@bcim.be>\>
- Michael Tietz (MT Software) \<<mtietz@mt-software.de>\>
- Camptocamp
- Christopher Hansen \<<christopher.hansen@raumschmiede.de>\>
3 changes: 3 additions & 0 deletions printing_auto_stock_picking/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
When a picking is done, automatically trigger the printing of some
documents. This can be used to print a delivery slip (report) or labels
received from the carrier (attachment).
3 changes: 3 additions & 0 deletions printing_auto_stock_picking/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_manager,stock_picking_auto_print - manager,printing_auto_base.model_printing_auto,stock.group_stock_manager,1,1,1,1
access_user,stock_picking_auto_print - user,printing_auto_base.model_printing_auto,stock.group_stock_user,1,0,0,0
13 changes: 13 additions & 0 deletions printing_auto_stock_picking/security/ir_rule.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="ir_rule_user" model="ir.rule">
<field name="name">stock picking auto print</field>
<field name="model_id" ref="printing_auto_base.model_printing_auto" />
<field name="domain_force">[("model", "=", "stock.picking")]</field>
<field name="groups" eval="[(4, ref('stock.group_stock_user'))]" />
<field name="perm_create" eval="0" />
<field name="perm_write" eval="0" />
<field name="perm_unlink" eval="0" />
<field name="perm_read" eval="1" />
</record>
</odoo>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading