Skip to content

Commit

Permalink
[FIX] product_packaging_dimension/product_logistics_uom: lints
Browse files Browse the repository at this point in the history
  • Loading branch information
JVegaB committed Jul 9, 2024
1 parent b4f9831 commit beefbf4
Show file tree
Hide file tree
Showing 20 changed files with 78 additions and 65 deletions.
37 changes: 20 additions & 17 deletions product_logistics_uom/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,23 @@ Product logistics UoM
:target: https://github.com/OCA/product-attribute/tree/17.0/product_logistics_uom
:alt: OCA/product-attribute
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-product_logistics_uom
:target: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_logistics_uom
: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/product-attribute&target_branch=17.0
:alt: Try me on Runboat

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

This module allows to choose an Unit Of Measure (UoM) for products weight and volume.
It can be set product per product for users in group_uom.
This module allows to choose an Unit Of Measure (UoM) for products
weight and volume. It can be set product per product for users in
group_uom.

Without this module, you only have the choice between Kg or Lb(s) and m³ for all the products.
Without this module, you only have the choice between Kg or Lb(s) and m³
for all the products.

For some business cases, you need to express in more precise UoM than default ones like Liters
instead of M³.
For some business cases, you need to express in more precise UoM than
default ones like Liters instead of M³.

**Table of contents**

Expand All @@ -46,19 +48,20 @@ Installation

Be aware, that this module only change the UoM but not the value.

It's the same behavior as base Odoo when you change from Metric System to Imperial System.
It's the same behavior as base Odoo when you change from Metric System
to Imperial System.

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

To change the default UoM

#. Go "General Settings", then in "Products"
#. you have to select a default unit of measure for weights and volumes.
1. Go "General Settings", then in "Products"
2. you have to select a default unit of measure for weights and volumes.

To change on a specific product

#. Go the product form you can change the UoM directly.
1. Go the product form you can change the UoM directly.

Bug Tracker
===========
Expand All @@ -74,25 +77,25 @@ Credits
=======

Authors
~~~~~~~
-------

* Akretion

Contributors
~~~~~~~~~~~~
------------

* Raphaël Reverdy <[email protected]>
- Raphaël Reverdy <[email protected]>

Other credits
~~~~~~~~~~~~~
-------------

The development of this module has been financially supported by:

* Akretion <https://akretion.com>
* La Base <https://labase.coop>
- Akretion <https://akretion.com>
- La Base <https://labase.coop>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand Down
3 changes: 3 additions & 0 deletions product_logistics_uom/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
9 changes: 9 additions & 0 deletions product_logistics_uom/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
To change the default UoM

1. Go "General Settings", then in "Products"
2. you have to select a default unit of measure for weights and
volumes.

To change on a specific product

1. Go the product form you can change the UoM directly.
8 changes: 0 additions & 8 deletions product_logistics_uom/readme/CONFIGURE.rst

This file was deleted.

1 change: 1 addition & 0 deletions product_logistics_uom/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Raphaël Reverdy \<<[email protected]>\>
1 change: 0 additions & 1 deletion product_logistics_uom/readme/CONTRIBUTORS.rst

This file was deleted.

4 changes: 4 additions & 0 deletions product_logistics_uom/readme/CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The development of this module has been financially supported by:

- Akretion \<<https://akretion.com>\>
- La Base \<<https://labase.coop>\>
4 changes: 0 additions & 4 deletions product_logistics_uom/readme/CREDITS.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
This module allows to choose an Unit Of Measure (UoM) for products weight and volume.
It can be set product per product for users in group_uom.
This module allows to choose an Unit Of Measure (UoM) for products
weight and volume. It can be set product per product for users in
group_uom.

Without this module, you only have the choice between Kg or Lb(s) and m³ for all the products.
Without this module, you only have the choice between Kg or Lb(s) and m³
for all the products.

For some business cases, you need to express in more precise UoM than default ones like Liters
instead of M³.
For some business cases, you need to express in more precise UoM than
default ones like Liters instead of M³.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Be aware, that this module only change the UoM but not the value.

It's the same behavior as base Odoo when you change from Metric System to Imperial System.
It's the same behavior as base Odoo when you change from Metric System
to Imperial System.
18 changes: 10 additions & 8 deletions product_logistics_uom/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand Down Expand Up @@ -369,12 +368,14 @@ <h1 class="title">Product logistics UoM</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c428d55c5ca2fbed7e7f053b5642620dc5ddfdcce5e67fe6c2154b1735799523
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/product-attribute/tree/17.0/product_logistics_uom"><img alt="OCA/product-attribute" src="https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-product_logistics_uom"><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/product-attribute&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows to choose an Unit Of Measure (UoM) for products weight and volume.
It can be set product per product for users in group_uom.</p>
<p>Without this module, you only have the choice between Kg or Lb(s) and m³ for all the products.</p>
<p>For some business cases, you need to express in more precise UoM than default ones like Liters
instead of M³.</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/product-attribute/tree/17.0/product_logistics_uom"><img alt="OCA/product-attribute" src="https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_logistics_uom"><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/product-attribute&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows to choose an Unit Of Measure (UoM) for products
weight and volume. It can be set product per product for users in
group_uom.</p>
<p>Without this module, you only have the choice between Kg or Lb(s) and m³
for all the products.</p>
<p>For some business cases, you need to express in more precise UoM than
default ones like Liters instead of M³.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -393,7 +394,8 @@ <h1 class="title">Product logistics UoM</h1>
<div class="section" id="installation">
<h1><a class="toc-backref" href="#toc-entry-1">Installation</a></h1>
<p>Be aware, that this module only change the UoM but not the value.</p>
<p>It’s the same behavior as base Odoo when you change from Metric System to Imperial System.</p>
<p>It’s the same behavior as base Odoo when you change from Metric System
to Imperial System.</p>
</div>
<div class="section" id="configuration">
<h1><a class="toc-backref" href="#toc-entry-2">Configuration</a></h1>
Expand Down
20 changes: 10 additions & 10 deletions product_packaging_dimension/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ Product Packaging Dimension
:target: https://github.com/OCA/product-attribute/tree/17.0/product_packaging_dimension
:alt: OCA/product-attribute
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-product_packaging_dimension
:target: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_packaging_dimension
: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/product-attribute&target_branch=17.0
:alt: Try me on Runboat

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

This module allows to store dimensions (length, width, height), weight and
volume of product packagings.
This module allows to store dimensions (length, width, height), weight
and volume of product packagings.

**Table of contents**

Expand All @@ -39,7 +39,7 @@ volume of product packagings.
Known issues / Roadmap
======================

* Resolve conflict with delivery module
- Resolve conflict with delivery module

Bug Tracker
===========
Expand All @@ -55,20 +55,20 @@ Credits
=======

Authors
~~~~~~~
-------

* Camptocamp
* Akretion

Contributors
~~~~~~~~~~~~
------------

* Patrick Tombez <[email protected]>
* Akim Juillerat <[email protected]>
* Kévin Roche <[email protected]>
- Patrick Tombez <[email protected]>
- Akim Juillerat <[email protected]>
- Kévin Roche <[email protected]>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


def migrate(cr, version):

# Rename lngth into packaging_length
if column_exists(cr, "product_packaging", "packaging_length"):
cr.execute("UPDATE product_packaging SET packaging_length = lngth")
Expand Down
3 changes: 3 additions & 0 deletions product_packaging_dimension/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
3 changes: 3 additions & 0 deletions product_packaging_dimension/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Patrick Tombez \<<[email protected]>\>
- Akim Juillerat \<<[email protected]>\>
- Kévin Roche \<<[email protected]>\>
3 changes: 0 additions & 3 deletions product_packaging_dimension/readme/CONTRIBUTORS.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This module allows to store dimensions (length, width, height), weight and
volume of product packagings.
This module allows to store dimensions (length, width, height), weight
and volume of product packagings.
1 change: 1 addition & 0 deletions product_packaging_dimension/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Resolve conflict with delivery module
1 change: 0 additions & 1 deletion product_packaging_dimension/readme/ROADMAP.rst

This file was deleted.

7 changes: 3 additions & 4 deletions product_packaging_dimension/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand Down Expand Up @@ -369,9 +368,9 @@ <h1 class="title">Product Packaging Dimension</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:9a5b6058ea9a98e11b0b97e9f65df964f328a34d17c38a07b23895a1121726a6
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/product-attribute/tree/17.0/product_packaging_dimension"><img alt="OCA/product-attribute" src="https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-product_packaging_dimension"><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/product-attribute&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows to store dimensions (length, width, height), weight and
volume of product packagings.</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/product-attribute/tree/17.0/product_packaging_dimension"><img alt="OCA/product-attribute" src="https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_packaging_dimension"><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/product-attribute&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows to store dimensions (length, width, height), weight
and volume of product packagings.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand Down

0 comments on commit beefbf4

Please sign in to comment.