mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 11:32:04 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
29
odoo-bringout-oca-ocb-sale/sale/tests/test_sale_order_ui.py
Normal file
29
odoo-bringout-oca-ocb-sale/sale/tests/test_sale_order_ui.py
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue