19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:32:12 +01:00
parent 79f83631d5
commit 73afc09215
6267 changed files with 1534193 additions and 1130106 deletions

View file

@ -0,0 +1,29 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.fields import Command
from odoo.tests import HttpCase, tagged
from odoo.addons.product.tests.common import ProductVariantsCommon
@tagged('post_install', '-at_install')
class TestSaleOrderUI(HttpCase, ProductVariantsCommon):
def test_sale_order_keep_uom_on_variant_wizard_quantity_change(self):
so = self.env['sale.order'].create({
'partner_id': self.partner.id,
'order_line': [Command.create({
'product_id': self.product_template_sofa.product_variant_ids[0].id,
'product_uom_id': self.uom_dozen.id,
'product_uom_qty': 1,
})],
})
self.start_tour(
f'/odoo/sales/{so.id}',
'sale_order_keep_uom_on_variant_wizard_quantity_change',
login="admin",
)
sol = so.order_line[0]
self.assertEqual(sol.product_uom_id, self.uom_dozen)