mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-25 03:52:04 +02:00
Initial commit: Sale packages
This commit is contained in:
commit
14e3d26998
6469 changed files with 2479670 additions and 0 deletions
31
odoo-bringout-oca-ocb-product/product/tests/test_common.py
Normal file
31
odoo-bringout-oca-ocb-product/product/tests/test_common.py
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo.tests import tagged
|
||||
|
||||
from odoo.addons.product.tests.common import ProductCommon
|
||||
|
||||
|
||||
@tagged('post_install', '-at_install')
|
||||
class TestProduct(ProductCommon):
|
||||
|
||||
def test_common(self):
|
||||
self.assertEqual(self.consumable_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([]),
|
||||
self.pricelist,
|
||||
)
|
||||
self.assertEqual(
|
||||
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')
|
||||
Loading…
Add table
Add a link
Reference in a new issue