Skip to content

Commit

Permalink
[REF] sale_order_weight: rename into sale_order_ordered_weight, to av…
Browse files Browse the repository at this point in the history
…oid conflict with sale-reporting/sale_order_weight module
  • Loading branch information
legalsylvain committed Feb 4, 2025
1 parent 0aa0b89 commit d0f33a7
Show file tree
Hide file tree
Showing 35 changed files with 231 additions and 231 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ Sale Order Weight
: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/16.0/sale_order_weight
:target: https://github.com/OCA/sale-workflow/tree/16.0/sale_order_ordered_weight
: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-16-0/sale-workflow-16-0-sale_order_weight
:target: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_ordered_weight
: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=16.0
Expand All @@ -43,7 +43,7 @@ Configuration

* Go to "Sales > Configuration > Settings"

.. figure:: https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_weight/static/description/configuration.png
.. figure:: https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_ordered_weight/static/description/configuration.png

Display Order weight is checked by default.

Expand All @@ -56,21 +56,21 @@ Usage

The ordered weights are displayed on each order lines and at order level.

.. figure:: https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_weight/static/description/sale_order_form.png
.. figure:: https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_ordered_weight/static/description/sale_order_form.png

Note: The weight are also available on the order tree view. (hidden by default)

* Print a sale order.

.. figure:: https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_weight/static/description/sale_order_report.png
.. figure:: https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_ordered_weight/static/description/sale_order_report.png

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_order_weight%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_ordered_weight%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.

Expand Down Expand Up @@ -110,6 +110,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-legalsylvain|

This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/16.0/sale_order_weight>`_ project on GitHub.
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/16.0/sale_order_ordered_weight>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
File renamed without changes.
File renamed without changes.
56 changes: 56 additions & 0 deletions sale_order_ordered_weight/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_ordered_weight
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-04-23 06:28+0000\n"
"PO-Revision-Date: 2021-04-23 06:28+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: sale_order_ordered_weight
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.view_order_form_inherit
msgid "Recalculate weight"
msgstr ""

#. module: sale_order_ordered_weight
#: model:ir.model,name:sale_order_ordered_weight.model_sale_order
msgid "Sale Order"
msgstr "Pedido de venta"

#. module: sale_order_ordered_weight
#: model:ir.model,name:sale_order_ordered_weight.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línea de pedido de venta"

#. module: sale_order_ordered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order__total_delivered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order_line__total_delivered_weight
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.quotation_weight_view_form
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.sale_order_ordered_weight_view_form
msgid "Total Delivered Weight"
msgstr "Total Peso Enviado"

#. module: sale_order_ordered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order__total_ordered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order_line__total_ordered_weight
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.quotation_weight_view_form
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.sale_order_ordered_weight_view_form
msgid "Total Ordered Weight"
msgstr "Total Peso Pedido"

#. module: sale_order_ordered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order_line__unit_weight
msgid "Unit Weight"
msgstr "Peso Unidad"

#~ msgid "Total Weight"
#~ msgstr "Total Peso"
53 changes: 53 additions & 0 deletions sale_order_ordered_weight/i18n/fr.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:
# * sale_order_ordered_weight
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-11-28 22:17+0000\n"
"PO-Revision-Date: 2023-11-28 22:17+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_order_ordered_weight
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.view_order_form_inherit
msgid "Recalculate weight"
msgstr "Recalculer le poids"

#. module: sale_order_ordered_weight
#: model:ir.model,name:sale_order_ordered_weight.model_sale_order
msgid "Sale Order"
msgstr "Bon de commande"

#. module: sale_order_ordered_weight
#: model:ir.model,name:sale_order_ordered_weight.model_sale_order_line
msgid "Sales Order Line"
msgstr "Ligne de bons de commande"

#. module: sale_order_ordered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order__total_delivered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order_line__total_delivered_weight
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.quotation_weight_view_form
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.sale_order_ordered_weight_view_form
msgid "Total Delivered Weight"
msgstr "Poids livré"

#. module: sale_order_ordered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order__total_ordered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order_line__total_ordered_weight
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.quotation_weight_view_form
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.sale_order_ordered_weight_view_form
msgid "Total Ordered Weight"
msgstr "Poids commandé"

#. module: sale_order_ordered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order_line__unit_weight
msgid "Unit Weight"
msgstr "Poids unitaire"

53 changes: 53 additions & 0 deletions sale_order_ordered_weight/i18n/pt.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:
# * sale_order_ordered_weight
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-04-23 06:28+0000\n"
"PO-Revision-Date: 2021-04-23 06:28+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: sale_order_ordered_weight
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.view_order_form_inherit
msgid "Recalculate weight"
msgstr ""

#. module: sale_order_ordered_weight
#: model:ir.model,name:sale_order_ordered_weight.model_sale_order
msgid "Sale Order"
msgstr ""

#. module: sale_order_ordered_weight
#: model:ir.model,name:sale_order_ordered_weight.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

#. module: sale_order_ordered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order__total_delivered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order_line__total_delivered_weight
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.quotation_weight_view_form
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.sale_order_ordered_weight_view_form
msgid "Total Delivered Weight"
msgstr ""

#. module: sale_order_ordered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order__total_ordered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order_line__total_ordered_weight
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.quotation_weight_view_form
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.sale_order_ordered_weight_view_form
msgid "Total Ordered Weight"
msgstr ""

#. module: sale_order_ordered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order_line__unit_weight
msgid "Unit Weight"
msgstr ""
51 changes: 51 additions & 0 deletions sale_order_ordered_weight/i18n/sale_order_weight.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_ordered_weight
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.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_order_ordered_weight
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.view_order_form_inherit
msgid "Recalculate weight"
msgstr ""

#. module: sale_order_ordered_weight
#: model:ir.model,name:sale_order_ordered_weight.model_sale_order
msgid "Sale Order"
msgstr ""

#. module: sale_order_ordered_weight
#: model:ir.model,name:sale_order_ordered_weight.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

#. module: sale_order_ordered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order__total_delivered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order_line__total_delivered_weight
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.quotation_weight_view_form
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.sale_order_ordered_weight_view_form
msgid "Total Delivered Weight"
msgstr ""

#. module: sale_order_ordered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order__total_ordered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order_line__total_ordered_weight
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.quotation_weight_view_form
#: model_terms:ir.ui.view,arch_db:sale_order_ordered_weight.sale_order_ordered_weight_view_form
msgid "Total Ordered Weight"
msgstr ""

#. module: sale_order_ordered_weight
#: model:ir.model.fields,field_description:sale_order_ordered_weight.field_sale_order_line__unit_weight
msgid "Unit Weight"
msgstr ""

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from openupgradelib import openupgrade

# pylint: disable=W8150
from odoo.addons.sale_order_weight import pre_init_hook
from odoo.addons.sale_order_ordered_weight import pre_init_hook


@openupgrade.migrate()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ <h1 class="title">Sale Order Weight</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:6c59da35017eadc3724250770bc60296ba21ae7ec3902b2171477d8b8e3d3247
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/sale-workflow/tree/16.0/sale_order_weight"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_weight"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/sale-workflow/tree/16.0/sale_order_ordered_weight"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_ordered_weight"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module is used to calculate the weight (Ordered Products) in a sale order.</p>
<p>The weight can be displayed on the sale order report.</p>
<p><strong>Table of contents</strong></p>
Expand All @@ -392,7 +392,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<li>Go to “Sales &gt; Configuration &gt; Settings”</li>
</ul>
<div class="figure">
<img alt="https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_weight/static/description/configuration.png" src="https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_weight/static/description/configuration.png" />
<img alt="https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_ordered_weight/static/description/configuration.png" src="https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_ordered_weight/static/description/configuration.png" />
</div>
<p>Display Order weight is checked by default.</p>
<p>The weight display at line level is hidden by default, to avoid burdening the PDF report.</p>
Expand All @@ -404,22 +404,22 @@ <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
</ul>
<p>The ordered weights are displayed on each order lines and at order level.</p>
<div class="figure">
<img alt="https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_weight/static/description/sale_order_form.png" src="https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_weight/static/description/sale_order_form.png" />
<img alt="https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_ordered_weight/static/description/sale_order_form.png" src="https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_ordered_weight/static/description/sale_order_form.png" />
</div>
<p>Note: The weight are also available on the order tree view. (hidden by default)</p>
<ul class="simple">
<li>Print a sale order.</li>
</ul>
<div class="figure">
<img alt="https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_weight/static/description/sale_order_report.png" src="https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_weight/static/description/sale_order_report.png" />
<img alt="https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_ordered_weight/static/description/sale_order_report.png" src="https://raw.githubusercontent.com/OCA/sale-workflow/16.0/sale_order_ordered_weight/static/description/sale_order_report.png" />
</div>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/sale-workflow/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_weight%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_ordered_weight%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -449,7 +449,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/legalsylvain"><img alt="legalsylvain" src="https://github.com/legalsylvain.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/16.0/sale_order_weight">OCA/sale-workflow</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/16.0/sale_order_ordered_weight">OCA/sale-workflow</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 Manuel Calero Solís (https://xtendoo.es)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import test_sale_order_weight
from . import test_sale_order_ordered_weight
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from odoo.tests import common


class TestSaleOrderWeight(common.TransactionCase):
class TestSaleOrderOrderedWeight(common.TransactionCase):
def setUp(self):
super().setUp()
self.partner = self.env.ref("base.res_partner_1")
Expand Down Expand Up @@ -40,6 +40,6 @@ def setUp(self):
}
)

def test_sale_order_weight(self):
def test_sale_order_ordered_weight(self):
# 10 * 5 kg * 1 (Unit) + 1 * 5 kg * 12 (Dozen)
self.assertEqual(self.sale_order.total_ordered_weight, 110.0)
File renamed without changes.
Loading

0 comments on commit d0f33a7

Please sign in to comment.