Skip to content

Commit

Permalink
Merge PR #3 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Sep 20, 2024
2 parents ef61308 + 6546e93 commit 71d33b0
Show file tree
Hide file tree
Showing 16 changed files with 748 additions and 0 deletions.
79 changes: 79 additions & 0 deletions sale_elaboration_weighing/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
===============================
Weighing assistant elaborations
===============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:324df009a628b8a0ec94181950618fe202af1d42ff3488a99145238b1b4408c1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Fstock--weighing-lightgray.png?logo=github
:target: https://github.com/OCA/stock-weighing/tree/15.0/sale_elaboration_weighing
:alt: OCA/stock-weighing
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-weighing-15-0/stock-weighing-15-0-sale_elaboration_weighing
: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-weighing&target_branch=15.0
:alt: Try me on Runboat

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

Show elaborations information and filters in the weighing assistant.

**Table of contents**

.. contents::
:local:

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

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

* Tecnativa

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

- `Tecnativa <https://www.tecnativa.com>`__

- David Vidal
- Sergio Teruel

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/stock-weighing <https://github.com/OCA/stock-weighing/tree/15.0/sale_elaboration_weighing>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions sale_elaboration_weighing/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
22 changes: 22 additions & 0 deletions sale_elaboration_weighing/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2024 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Weighing assistant elaborations",
"summary": "Weighing assistant extension for elaborations",
"version": "15.0.1.0.0",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-weighing",
"license": "AGPL-3",
"category": "Inventory",
"depends": [
"stock_weighing",
"sale_elaboration",
],
"data": ["views/stock_move_views.xml"],
"assets": {
"web.assets_backend": [
"sale_elaboration_weighing/static/src/scss/stock_weighing.scss",
],
},
"installable": True,
}
61 changes: 61 additions & 0 deletions sale_elaboration_weighing/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_elaboration_weighing
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-17 10:58+0000\n"
"PO-Revision-Date: 2024-07-17 12:59+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.4.4\n"

#. module: sale_elaboration_weighing
#: model_terms:ir.ui.view,arch_db:sale_elaboration_weighing.view_move_weight_kanban_view
msgid "<i class=\"fa fa-cutlery mr-1\" title=\"Elaboration note\"/>"
msgstr "<i class=\"fa fa-cutlery mr-1\" title=\"Nota de elaboración\"/>"

#. module: sale_elaboration_weighing
#: model_terms:ir.ui.view,arch_db:sale_elaboration_weighing.view_move_search
msgid "Elaborated"
msgstr "Elaborado"

#. module: sale_elaboration_weighing
#: code:addons/sale_elaboration_weighing/wizards/weigh_operation_selection.py:0
#, python-format
msgid "Elaborations"
msgstr "Elaboraciones"

#. module: sale_elaboration_weighing
#: model_terms:ir.ui.view,arch_db:sale_elaboration_weighing.view_move_search
msgid "Not elaborated"
msgstr "No elaborado"

#. module: sale_elaboration_weighing
#: code:addons/sale_elaboration_weighing/wizards/weigh_operation_selection.py:0
#, python-format
msgid "Outgoing elaborations"
msgstr "Elaboraciones salientes"

#. module: sale_elaboration_weighing
#: model:ir.model,name:sale_elaboration_weighing.model_stock_move
msgid "Stock Move"
msgstr "Movimiento de stock"

#. module: sale_elaboration_weighing
#: code:addons/sale_elaboration_weighing/models/stock_move.py:0
#, python-format
msgid "Weigh elaborations"
msgstr "Pesar elaboraciones"

#. module: sale_elaboration_weighing
#: model:ir.model,name:sale_elaboration_weighing.model_weigh_operation_selection
msgid "weigh operation selection screen"
msgstr "pantalla de selección de operación de pesaje"
59 changes: 59 additions & 0 deletions sale_elaboration_weighing/i18n/sale_elaboration_weighing.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_elaboration_weighing
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-17 10:57+0000\n"
"PO-Revision-Date: 2024-07-17 10:57+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: sale_elaboration_weighing
#: model_terms:ir.ui.view,arch_db:sale_elaboration_weighing.view_move_weight_kanban_view
msgid "<i class=\"fa fa-cutlery mr-1\" title=\"Elaboration note\"/>"
msgstr ""

#. module: sale_elaboration_weighing
#: model_terms:ir.ui.view,arch_db:sale_elaboration_weighing.view_move_search
msgid "Elaborated"
msgstr ""

#. module: sale_elaboration_weighing
#: code:addons/sale_elaboration_weighing/wizards/weigh_operation_selection.py:0
#, python-format
msgid "Elaborations"
msgstr ""

#. module: sale_elaboration_weighing
#: model_terms:ir.ui.view,arch_db:sale_elaboration_weighing.view_move_search
msgid "Not elaborated"
msgstr ""

#. module: sale_elaboration_weighing
#: code:addons/sale_elaboration_weighing/wizards/weigh_operation_selection.py:0
#, python-format
msgid "Outgoing elaborations"
msgstr ""

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

#. module: sale_elaboration_weighing
#: code:addons/sale_elaboration_weighing/models/stock_move.py:0
#, python-format
msgid "Weigh elaborations"
msgstr ""

#. module: sale_elaboration_weighing
#: model:ir.model,name:sale_elaboration_weighing.model_weigh_operation_selection
msgid "weigh operation selection screen"
msgstr ""
1 change: 1 addition & 0 deletions sale_elaboration_weighing/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import stock_move
21 changes: 21 additions & 0 deletions sale_elaboration_weighing/models/stock_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2024 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import _, api, models
from odoo.osv import expression


class StockMove(models.Model):
_inherit = "stock.move"

@api.model
def action_sale_elaboration_weighing(self):
"""Used in the start screen"""
action = self.action_outgoing_weighing_operations()
action["name"] = _("Weigh elaborations")
action["domain"] = expression.AND(
[
action["domain"],
["|", ("elaboration_note", "!=", ""), ("elaboration_ids", "!=", False)],
]
)
return action
3 changes: 3 additions & 0 deletions sale_elaboration_weighing/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [Tecnativa](https://www.tecnativa.com)
- David Vidal
- Sergio Teruel
1 change: 1 addition & 0 deletions sale_elaboration_weighing/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Show elaborations information and filters in the weighing assistant.
Loading

0 comments on commit 71d33b0

Please sign in to comment.