mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 02:12:05 +02:00
Initial commit: Sale packages
This commit is contained in:
commit
14e3d26998
6469 changed files with 2479670 additions and 0 deletions
|
|
@ -0,0 +1,42 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import Command
|
||||
from odoo.addons.event_booth.tests.common import TestEventBoothCommon
|
||||
|
||||
|
||||
class TestEventBoothSaleCommon(TestEventBoothCommon):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super(TestEventBoothSaleCommon, cls).setUpClass()
|
||||
|
||||
cls.event_booth_product = cls.env['product.product'].create({
|
||||
'name': 'Test Booth Product',
|
||||
'description_sale': 'Mighty Booth Description',
|
||||
'list_price': 20,
|
||||
'standard_price': 60.0,
|
||||
'detailed_type': 'event_booth',
|
||||
})
|
||||
(cls.event_booth_category_1 + cls.event_booth_category_2).write({
|
||||
'product_id': cls.event_booth_product.id,
|
||||
})
|
||||
|
||||
cls.tax_10 = cls.env['account.tax'].sudo().create({
|
||||
'name': 'Tax 10',
|
||||
'amount': 10,
|
||||
})
|
||||
|
||||
cls.test_pricelist = cls.env['product.pricelist'].sudo().create({
|
||||
'name': 'Test Pricelist',
|
||||
})
|
||||
cls.test_pricelist_with_discount_included = cls.env['product.pricelist'].sudo().create({
|
||||
'name': 'Test Pricelist',
|
||||
'discount_policy': 'with_discount',
|
||||
'item_ids': [
|
||||
Command.create({
|
||||
'compute_price': 'percentage',
|
||||
'percent_price': '10.0',
|
||||
})
|
||||
],
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue