diff --git a/mrp_bom_line_net_qty/README.rst b/mrp_bom_line_net_qty/README.rst index 28a2d7183..02353ea78 100644 --- a/mrp_bom_line_net_qty/README.rst +++ b/mrp_bom_line_net_qty/README.rst @@ -7,7 +7,7 @@ MRP BoM Line Net and Gross Quantity !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:db30c1cf56c778d61a123afdde23cac7a1c569f218185c5a32334fa74d7e51a9 + !! source digest: sha256:d28bb95908f9af39d805d7e789f88a5158f5b703b9ea7673eda7e3a0838d385c !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -84,6 +84,14 @@ 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-quentinDupont| image:: https://github.com/quentinDupont.png?size=40px + :target: https://github.com/quentinDupont + :alt: quentinDupont + +Current `maintainer `__: + +|maintainer-quentinDupont| + This module is part of the `OCA/manufacture `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mrp_bom_line_net_qty/models/mrp_bom_line.py b/mrp_bom_line_net_qty/models/mrp_bom_line.py index 2a9f08b0d..433c86c46 100644 --- a/mrp_bom_line_net_qty/models/mrp_bom_line.py +++ b/mrp_bom_line_net_qty/models/mrp_bom_line.py @@ -11,12 +11,12 @@ class MrpBomLine(models.Model): product_qty_net = fields.Float( string="Net quantity", - help="Weight after any preparation, e.g. weight of carrots after they are grated.", + help="Quantity after process", digits="Product Unit of Measure", ) loss_percentage = fields.Float( string="Loss %", - help="Percentage loss, for example, when grating carrots", + help="Percentage loss during process", digits=(16, 2), ) diff_product_qty_gross_net = fields.Float( @@ -31,11 +31,11 @@ class MrpBomLine(models.Model): @api.depends("product_qty", "product_qty_net", "loss_percentage") def _compute_diff_product_qty_gross_net(self): for bom_line in self: - _bomline_qty_net_theorical = self.calculate_qty_net_theoretical( + _bom_line_qty_net_theorical = self.calculate_qty_net_theoretical( bom_line.product_qty, bom_line.loss_percentage ) _diff_product_qty_gross_net = round( - (bom_line.product_qty_net - _bomline_qty_net_theorical), 2 + (bom_line.product_qty_net - _bom_line_qty_net_theorical), 2 ) bom_line.diff_product_qty_gross_net = _diff_product_qty_gross_net diff --git a/mrp_bom_line_net_qty/static/description/index.html b/mrp_bom_line_net_qty/static/description/index.html index b11724cdc..0b4e5a127 100644 --- a/mrp_bom_line_net_qty/static/description/index.html +++ b/mrp_bom_line_net_qty/static/description/index.html @@ -9,10 +9,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +276,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code { margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +302,7 @@ span.option { span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -367,7 +368,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:db30c1cf56c778d61a123afdde23cac7a1c569f218185c5a32334fa74d7e51a9 +!! source digest: sha256:d28bb95908f9af39d805d7e789f88a5158f5b703b9ea7673eda7e3a0838d385c !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/manufacture Translate me on Weblate Try me on Runboat

Handle gross and net quantity on BoM lines thanks to loss percentage @@ -422,10 +423,14 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

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.

+

Current maintainer:

+

quentinDupont

This module is part of the OCA/manufacture project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.