[FIX] purchase_{}, sale_stock, stock: quantities typo

closes odoo/odoo#107242

X-original-commit: 2e18bc8ced09e3100f509b56738cba8ac4288355
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
This commit is contained in:
niyasraphy
2022-12-07 15:32:06 +01:00
parent defce6b833
commit eccc308f18
5 changed files with 5 additions and 5 deletions
@@ -482,7 +482,7 @@ msgstr ""
#. module: purchase_requisition
#: model:ir.model.fields,help:purchase_requisition.field_purchase_requisition_create_alternative__copy_products
msgid ""
"If this is checked, the product quantites of the original PO will be copied"
"If this is checked, the product quantities of the original PO will be copied"
msgstr ""
#. module: purchase_requisition
@@ -26,7 +26,7 @@ class PurchaseRequisitionCreateAlternative(models.TransientModel):
groups="purchase.group_warning_purchase")
copy_products = fields.Boolean(
"Copy Products", default=True,
help="If this is checked, the product quantites of the original PO will be copied")
help="If this is checked, the product quantities of the original PO will be copied")
@api.depends('partner_id', 'copy_products')
def _compute_purchase_warn(self):
@@ -179,7 +179,7 @@ class TestCreatePicking(common.TestProductCommon):
def test_03_uom(self):
""" Buy a dozen of products stocked in units. Check that the quantities on the purchase order
lines as well as the received quantities are handled in dozen while the moves themselves
are handled in units. Edit the ordered quantities, check that the quantites are correctly
are handled in units. Edit the ordered quantities, check that the quantities are correctly
updated on the moves. Edit the ir.config_parameter to propagate the uom of the purchase order
lines to the moves and edit a last time the ordered quantities. Receive, check the quantities.
"""
+1 -1
View File
@@ -433,7 +433,7 @@ class TestSaleStock(TestSaleCommon, ValuationReconciliationTestCommon):
def test_06_uom(self):
""" Sell a dozen of products stocked in units. Check that the quantities on the sale order
lines as well as the delivered quantities are handled in dozen while the moves themselves
are handled in units. Edit the ordered quantities, check that the quantites are correctly
are handled in units. Edit the ordered quantities, check that the quantities are correctly
updated on the moves. Edit the ir.config_parameter to propagate the uom of the sale order
lines to the moves and edit a last time the ordered quantities. Deliver, check the
quantities.
+1 -1
View File
@@ -945,7 +945,7 @@ Please change the quantity done or the rounding precision of your unit of measur
moves_by_neg_key[neg_key(moves[0])] |= moves[0]
for neg_move in neg_qty_moves:
# Check all the candidates that matches the same limited key, and adjust their quantites to absorb negative moves
# Check all the candidates that matches the same limited key, and adjust their quantities to absorb negative moves
for pos_move in moves_by_neg_key.get(neg_key(neg_move), []):
# If quantity can be fully absorbed by a single move, update its quantity and remove the negative move
if float_compare(pos_move.product_uom_qty, abs(neg_move.product_uom_qty), precision_rounding=pos_move.product_uom.rounding) >= 0: