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

[18.0][MIG] sale_automatic_workflow_stock: Migration to 18.0 #3447

Merged
merged 6 commits into from
Jan 21, 2025
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
107 changes: 107 additions & 0 deletions sale_automatic_workflow_stock/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
=============================
Sale Automatic Workflow Stock
=============================

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

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

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

Create stock related workflows with more or less automatization and
apply it on sales orders.

Workflows are extended with:

- Apply default values:

- Packing Policy (partial, complete)

- Apply automatic actions:

- Confirm the picking

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-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/sale-workflow/issues/new?body=module:%20sale_automatic_workflow_stock%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
-------

* Akretion
* Camptocamp
* Sodexis

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

- Guewen Baconnier
- Beau Sebastien
- Leonardo Pistone
- Stéphane Bidoul
- Damien Crier
- Alexandre Fayolle
- Sodexis
- Dave Lasley <dave@laslabs.com>
- Akim Juillerat <akim.juillerat@camptocamp.com>
- Thomas Fossoul <thomas@niboo.com>
- Silvija Butko <silvija@focusate.eu>
- Tri Doan <<tridm@trobz.com>>
- Chau Le <<chaulb@trobz.com>>

Other credits
-------------

The migration of this module from 17.0 to 18.0 was financially supported
by Camptocamp.

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/sale-workflow <https://github.com/OCA/sale-workflow/tree/18.0/sale_automatic_workflow_stock>`_ 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 sale_automatic_workflow_stock/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
23 changes: 23 additions & 0 deletions sale_automatic_workflow_stock/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2011 Akretion Sébastien BEAU <sebastien.beau@akretion.com>
# Copyright 2013 Camptocamp SA (author: Guewen Baconnier)
# Copyright 2016 Sodexis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Sale Automatic Workflow Stock",
"version": "18.0.1.0.0",
"category": "Sales Management",
"license": "AGPL-3",
"author": "Akretion, "
"Camptocamp, "
"Sodexis, "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/sale-workflow",
"depends": ["sale_automatic_workflow", "sale_stock"],
"data": [
"views/sale_order_views.xml",
"views/sale_workflow_process_views.xml",
"data/automatic_workflow_data.xml",
],
"auto_install": True,
}
33 changes: 33 additions & 0 deletions sale_automatic_workflow_stock/data/automatic_workflow_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright (C) 2011 Akretion Sébastien BEAU <sebastien.beau@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo noupdate="1">
<!-- Filters -->
<record id="automatic_workflow_picking_filter" model="ir.filters">
<field name="name">Automatic Workflow Picking Filter</field>
<field name="model_id">stock.picking</field>
<field
name="domain"
>[('state', 'in', ['draft', 'confirmed', 'assigned'])]</field>
<field name="user_id" ref="base.user_root" />
</record>
<!-- Processes -->
<record
id="sale_automatic_workflow.automatic_validation"
model="sale.workflow.process"
>
<field name="picking_policy">one</field>
<field name="validate_picking" eval="0" />
<field name="picking_filter_id" eval="automatic_workflow_picking_filter" />
</record>
<record
id="sale_automatic_workflow.manual_validation"
model="sale.workflow.process"
>
<field name="picking_policy">one</field>
<field name="validate_picking" eval="0" />
<field name="picking_filter_id" eval="automatic_workflow_picking_filter" />
</record>
</odoo>
98 changes: 98 additions & 0 deletions sale_automatic_workflow_stock/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_automatic_workflow_stock
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-07-09 09:58+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.6.2\n"

#. module: sale_automatic_workflow_stock
#: model:ir.model.fields,field_description:sale_automatic_workflow_stock.field_sale_workflow_process__validate_picking
msgid "Confirm and Transfer Picking"
msgstr "Conferma e trasferisci il prelievo"

#. module: sale_automatic_workflow_stock
#: model:ir.model.fields.selection,name:sale_automatic_workflow_stock.selection__sale_workflow_process__picking_policy__one
msgid "Deliver all products at once"
msgstr "Consegna tutti i prodotti in una volta"

#. module: sale_automatic_workflow_stock
#: model:ir.model.fields.selection,name:sale_automatic_workflow_stock.selection__sale_workflow_process__picking_policy__direct
msgid "Deliver each product when available"
msgstr "Consegna ogni prodotto quando disponibile"

#. module: sale_automatic_workflow_stock
#: model:ir.model.fields,help:sale_automatic_workflow_stock.field_sale_order__picking_policy
msgid ""
"If you deliver all products at once, the delivery order will be scheduled "
"based on the greatest product lead time. Otherwise, it will be based on the "
"shortest."
msgstr ""
"Se tutti i prodotti vengono consegnati insieme, l'ordine di consegna verrà "
"pianificato in base al tempo di attraversamento maggiore. Altrimenti, verrà "
"utilizzato il più corto."

#. module: sale_automatic_workflow_stock
#: model:ir.model.fields,field_description:sale_automatic_workflow_stock.field_sale_workflow_process__picking_filter_id
msgid "Picking Filter"
msgstr "Filtro prelIevo"

#. module: sale_automatic_workflow_stock
#: model:ir.model.fields,field_description:sale_automatic_workflow_stock.field_sale_workflow_process__picking_filter_domain
msgid "Picking Filter Domain"
msgstr "Dominio filtro prelievo"

#. module: sale_automatic_workflow_stock
#: model:ir.model,name:sale_automatic_workflow_stock.model_sale_workflow_process
#: model:ir.model.fields,field_description:sale_automatic_workflow_stock.field_stock_picking__workflow_process_id
msgid "Sale Workflow Process"
msgstr "Flusso di vendita"

#. module: sale_automatic_workflow_stock
#: model:ir.model,name:sale_automatic_workflow_stock.model_sale_order
msgid "Sales Order"
msgstr "Ordine di vendita"

#. module: sale_automatic_workflow_stock
#: model:ir.model,name:sale_automatic_workflow_stock.model_automatic_workflow_job
msgid ""
"Scheduler that will play automatically the validation of invoices, "
"pickings..."
msgstr ""
"Schedulatore che riprodurrà in automatico la validazione delle fatture, "
"prelievi..."

#. module: sale_automatic_workflow_stock
#: model_terms:ir.ui.view,arch_db:sale_automatic_workflow_stock.sale_workflow_process_view_form_inherit
msgid ""
"Set selection based on a search\n"
" filter:"
msgstr ""
"Imposta seleziona in base ad un filtro\n"
" ricerca:"

#. module: sale_automatic_workflow_stock
#: model:ir.model.fields,field_description:sale_automatic_workflow_stock.field_sale_order__picking_policy
#: model:ir.model.fields,field_description:sale_automatic_workflow_stock.field_sale_workflow_process__picking_policy
msgid "Shipping Policy"
msgstr "Politica di spedizione"

#. module: sale_automatic_workflow_stock
#: model:ir.model,name:sale_automatic_workflow_stock.model_stock_move
msgid "Stock Move"
msgstr "Movimento di magazzino"

#. module: sale_automatic_workflow_stock
#: model:ir.model,name:sale_automatic_workflow_stock.model_stock_picking
msgid "Transfer"
msgstr "Trasferimento"
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_automatic_workflow_stock
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.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: sale_automatic_workflow_stock
#: model:ir.model.fields,field_description:sale_automatic_workflow_stock.field_sale_workflow_process__validate_picking
msgid "Confirm and Transfer Picking"
msgstr ""

#. module: sale_automatic_workflow_stock
#: model:ir.model.fields.selection,name:sale_automatic_workflow_stock.selection__sale_workflow_process__picking_policy__one
msgid "Deliver all products at once"
msgstr ""

#. module: sale_automatic_workflow_stock
#: model:ir.model.fields.selection,name:sale_automatic_workflow_stock.selection__sale_workflow_process__picking_policy__direct
msgid "Deliver each product when available"
msgstr ""

#. module: sale_automatic_workflow_stock
#: model:ir.model.fields,help:sale_automatic_workflow_stock.field_sale_order__picking_policy
msgid ""
"If you deliver all products at once, the delivery order will be scheduled "
"based on the greatest product lead time. Otherwise, it will be based on the "
"shortest."
msgstr ""

#. module: sale_automatic_workflow_stock
#: model:ir.model.fields,field_description:sale_automatic_workflow_stock.field_sale_workflow_process__picking_filter_id
msgid "Picking Filter"
msgstr ""

#. module: sale_automatic_workflow_stock
#: model:ir.model.fields,field_description:sale_automatic_workflow_stock.field_sale_workflow_process__picking_filter_domain
msgid "Picking Filter Domain"
msgstr ""

#. module: sale_automatic_workflow_stock
#: model:ir.model,name:sale_automatic_workflow_stock.model_sale_workflow_process
#: model:ir.model.fields,field_description:sale_automatic_workflow_stock.field_stock_picking__workflow_process_id
msgid "Sale Workflow Process"
msgstr ""

#. module: sale_automatic_workflow_stock
#: model:ir.model,name:sale_automatic_workflow_stock.model_sale_order
msgid "Sales Order"
msgstr ""

#. module: sale_automatic_workflow_stock
#: model:ir.model,name:sale_automatic_workflow_stock.model_automatic_workflow_job
msgid ""
"Scheduler that will play automatically the validation of invoices, "
"pickings..."
msgstr ""

#. module: sale_automatic_workflow_stock
#: model_terms:ir.ui.view,arch_db:sale_automatic_workflow_stock.sale_workflow_process_view_form_inherit
msgid ""
"Set selection based on a search\n"
" filter:"
msgstr ""

#. module: sale_automatic_workflow_stock
#: model:ir.model.fields,field_description:sale_automatic_workflow_stock.field_sale_order__picking_policy
#: model:ir.model.fields,field_description:sale_automatic_workflow_stock.field_sale_workflow_process__picking_policy
msgid "Shipping Policy"
msgstr ""

#. module: sale_automatic_workflow_stock
#: model:ir.model,name:sale_automatic_workflow_stock.model_stock_move
msgid "Stock Move"
msgstr ""

#. module: sale_automatic_workflow_stock
#: model:ir.model,name:sale_automatic_workflow_stock.model_stock_picking
msgid "Transfer"
msgstr ""
5 changes: 5 additions & 0 deletions sale_automatic_workflow_stock/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from . import automatic_workflow_job
from . import sale_order
from . import sale_workflow_process
from . import stock_move
from . import stock_picking
Loading
Loading