Author: |
Tecnativa,Odoo Community Association (OCA) |
License: |
AGPL-3 |
Branch: |
11.0 |
Repository: |
2FM/product-attribute |
Dependencies: |
decimal_precision,
and
stock |
Languages: |
HTML (387, 56.1%),
PO File (25, 3.6%),
Python (159, 23.0%),
XML (22, 3.2%),
and
reStructuredText (97, 14.1%) |
Other repositories: |
AITIC/product-attribute,
AladroLiderit/product-attribute,
Alfa-90/product-attribute,
BitStab/product-attribute,
CB-Gran-Canaria/product-attribute,
Change2improve/product-attribute,
Colorlessgold/product-attribute,
Darknroses/product-attribute,
DjaitaiKoffi/product-attribute,
Dobtor-OCA/product-attribute,
Domatix/product-attribute,
DucTruongKomit/product-attribute,
ERPLibre/product-attribute,
ForgeFlow/product-attribute,
GSLabIt/product-attribute,
Gabinete-Digital/product-attribute,
Ingeos/product-attribute,
Jeisonpernia/product-attribute,
JoanMarin/product-attribute,
KolushovAlexandr/product-attribute,
Martronic-SA/product-attribute,
MathBenTech/product-attribute,
Mefistous/product-attribute,
MjAbuz/product-attribute,
NeatNerdPrime/product-attribute,
Nikul-Chaudhary/product-attribute,
OCA-MUK/product-attribute,
OCA/product-attribute,
PESOL/product-attribute,
PortalFl0w/product-attribute,
Rad0van/product-attribute,
RosleStores/product-attribute,
SanteLibre/product-attribute,
SequarSrl/product-attribute,
SportPursuit/product-attribute,
TDu/product-attribute,
Tecnativa/product-attribute,
Tonow-c2c/product-attribute,
Vauxoo/product-attribute,
acsone/product-attribute,
agrista/odoo-product-attribute,
andreampiovesana/product-attribute,
anhvu-sg/product-attribute,
ansinaesmejor/product-attribute,
arun-art06/product-attribute,
aurestic/product-attribute,
binovo/product-attribute,
bizzappdevteam/product-attribute,
brain-tec/product-attribute,
brocoloco/product-attribute,
cnfengyuan/product-attribute,
conroyke56/product-attribute,
coopiteasy/product-attribute,
cubells/product-attribute,
cybernexus/product-attribute,
damdam-s/product-attribute,
danieldeyris/product-attribute,
diagramsoftware/product-attribute,
digitalsatori/product-attribute,
dong-z/product-attribute,
drashtigotecha/product-attribute,
dreispt/product-attribute,
druidoo-dev/product-attribute,
ecosoft-odoo/product-attribute,
ehsu0407/product-attribute,
emagdalenaC2i/product-attribute,
eversatis/product-attribute,
exosoftware/oca-product-attribute,
feketemihai/product-attribute,
filoquin/product-attribute,
foah/product-attribute,
fshah-initos/product-attribute,
gustavovalverde/product-attribute,
gustitammam/product-attribute,
i-vyshnevska/product-attribute,
imremazsar/product-attribute,
initOS/product-attribute,
it-projects-llc/product-attribute,
jasonlc1478/product-attribute,
joergfederspiel/product-attribute,
joseluisbossio/product-attribute,
kevinkhao/product-attribute,
kittiu/product-attribute,
kmee/product-attribute,
kos94ok-3D/product-attribute,
lideritjnma/product-attribute,
niulinlnc/product-attribute,
noorealam96/product-attribute,
nouhl/product-attribute,
ntsirintanis/product-attribute,
omalbastin/product-attribute,
one2pret/product-attribute,
osvalr/product-attribute,
ovnicraft/product-attribute,
p-tombez/product-attribute,
phuctranerp/product-attribute,
popcomputadores-desenv/product-attribute,
presenceverte/product-attribute,
pythoner-3k/product-attribute,
raizs/product-attribute,
redblow/product-attribute,
royalline1/product-attribute,
rven/product-attribute,
sacodoo/product-attribute,
samsagaz/product-attribute,
sanube/product-attribute,
sendalpegat/product-attribute,
sewisoft/product-attribute,
shepilov-vladislav/product-attribute,
smurf-U/product-attribute,
solvosci/product-attribute,
sunflowerit/product-attribute,
sunshineLhj/product-attribute,
takinobori/oca-product-attribute,
takobi-online/product-attribute,
tbaden/product-attribute,
tegin/product-attribute,
tonygalmiche/product-attribute,
unitek-solusi/OCA-product-attribute,
unwasted/product-attribute,
urbmend26/product-attribute,
usmcgwg/product-attribute,
valmarnet/product-attribute,
vdedyukhin/product-attribute,
versada/product-attribute,
vialaurea/OCA-product-attribute,
visztani/product-attribute,
wahello/product-attribute,
willmakenoise/product-attribute,
x0rzkov/odoo-product-attribute,
xt0ph/product-attribute,
xtendoo-corporation/product-attribute,
y2gsmith/product-attribute,
yasmanycastillo/product-attribute,
ypapouin/product-attribute,
yuriqp/product-attribute,
zeroheure/product-attribute,
zeroincombenze/product-attribute,
and
zhuyangbin/product-attribute |
<h1 class="title">Product Weight Through UoM</h1>
<p><a class="reference external" 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" 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" href="https://github.com/OCA/product-attribute/tree/11.0/product_weight_through_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" href="https://translation.odoo-community.org/projects/product-attribute-11-0/product-attribute-11-0-product_weight_through_uom"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/135/11.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module allows to use the unit of measure as a reference for the product
weight. So a product with a UoM of Kg will have a weight of 1.0 Kg. and a
product with a UoM of grams will have a weight of 0.001 Kg.</p>
<p>It still allows to adjust the total weight manually with an extra field.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#installation" id="id1">Installation</a></li>
<li><a class="reference internal" href="#configuration" id="id2">Configuration</a></li>
<li><a class="reference internal" href="#usage" id="id3">Usage</a></li>
<li><a class="reference internal" href="#known-issues-roadmap" id="id4">Known issues / Roadmap</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id5">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id6">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id7">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id8">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id9">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<a name="installation"></a>
<h2><a class="toc-backref" href="#id1">Installation</a></h2>
<p>Although it's not a direct dependency of this module you will need to have
<em>Sale Management</em> or <em>Inventory</em> installed in order to use Units of Measure.</p>
<a name="configuration"></a>
<h2><a class="toc-backref" href="#id2">Configuration</a></h2>
<p>To configure this module, you need to:</p>
<ol class="arabic simple">
<li>Go to <em>Inventory > Configuration > Settings</em>.</li>
<li>In the <em>Product</em> section set <em>Units of Measure</em> on.</li>
</ol>
<p>The decimal precission of the weight field is set to 2 digits by default so if
you need more decimals (i.e.: grams are 0,001 Kg and would be rounded to 0.00!)
you need to:</p>
<ol class="arabic simple">
<li>Go to <em>Settings > Technical > Database Structure > Decimal Accuracy</em></li>
<li>Edit <em>Stock Weight</em> and set <em>Digits</em> to your needs.</li>
</ol>
<a name="usage"></a>
<h2><a class="toc-backref" href="#id3">Usage</a></h2>
<ol class="arabic simple">
<li>Go to a product and change its UoM to any in the Weight category.</li>
<li>Go to the <em>Inventory</em> tab and you'll see the weight has changed to the
proper conversion.</li>
<li>Additionaly you can set an additional weight that will sum to the calculated
one.</li>
</ol>
<a name="known-issues-roadmap"></a>
<h2><a class="toc-backref" href="#id4">Known issues / Roadmap</a></h2>
<ul>
<li><p class="first">There's an incompatibility with the module <cite>delivery</cite> because of the way this
one computes the <cite>stock.quant.package</cite> and <cite>stock.picking</cite> weight based on
unit conversion multiplied by product weight.</p>
<p>E. g.: A product with a UoM of Tons will have a weight of 1000 Kg. <cite>delivery</cite>
computes it this way for every quant package or picking line:</p>
<ul class="simple">
<li>Converts the product Uom (Tons) to the line Uom (e.g.: Kg.) = 1000</li>
<li>Multiplies it by the line quantity (e.g.: 5) = 5000</li>
<li>Then multiplies it by the product weight = 50000</li>
</ul>
<p>This would be a correct compute if the UoM wouldn't be a weight measure
itself.</p>
</li>
</ul>
<a name="bug-tracker"></a>
<h2><a class="toc-backref" href="#id5">Bug Tracker</a></h2>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/product-attribute/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 smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/product-attribute/issues/new?body=module:%20product_weight_through_uom%0Aversion:%2011.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>
<a name="credits"></a>
<h2><a class="toc-backref" href="#id6">Credits</a></h2>
<a name="authors"></a>
<h3><a class="toc-backref" href="#id7">Authors</a></h3>
<ul class="simple">
<li>Tecnativa</li>
</ul>
<a name="contributors"></a>
<h3><a class="toc-backref" href="#id8">Contributors</a></h3>
<ul class="simple">
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
<li>David Vidal <<a class="reference external" href="mailto:david.vidal@tecnativa.com">david.vidal@tecnativa.com</a>></li>
</ul>
</li>
</ul>
<a name="maintainers"></a>
<h3><a class="toc-backref" href="#id9">Maintainers</a></h3>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/product-attribute/tree/11.0/product_weight_through_uom">OCA/product-attribute</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>