mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-25 05: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
|
|
@ -10,14 +10,10 @@ from odoo.addons.product.tests.common import ProductCommon
|
|||
class TestProduct(ProductCommon):
|
||||
|
||||
def test_common(self):
|
||||
self.assertEqual(self.consumable_product.type, 'consu')
|
||||
self._enable_pricelists()
|
||||
self.assertEqual(self.product.type, 'consu')
|
||||
self.assertEqual(self.service_product.type, 'service')
|
||||
|
||||
account_module = self.env['ir.module.module']._get('account')
|
||||
if account_module.state == 'installed':
|
||||
self.assertFalse(self.consumable_product.taxes_id)
|
||||
self.assertFalse(self.service_product.taxes_id)
|
||||
|
||||
self.assertFalse(self.pricelist.item_ids)
|
||||
self.assertEqual(
|
||||
self.env['product.pricelist'].search([]),
|
||||
|
|
@ -27,5 +23,4 @@ class TestProduct(ProductCommon):
|
|||
self.env['res.partner'].search([]).property_product_pricelist,
|
||||
self.pricelist,
|
||||
)
|
||||
self.assertEqual(self.pricelist.currency_id.name, 'USD')
|
||||
self.assertEqual(self.pricelist.discount_policy, 'with_discount')
|
||||
self.assertEqual(self.pricelist.currency_id.name, self.currency.name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue