mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-22 19:02:10 +02:00
Initial commit: Accounting packages
This commit is contained in:
commit
4ef34c2317
2661 changed files with 1709616 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.addons.account.tests.common import AccountTestInvoicingHttpCommon
|
||||
from odoo.tests.common import tagged
|
||||
|
||||
|
||||
@tagged('post_install', '-at_install')
|
||||
class TestTourRenderInvoiceReport(AccountTestInvoicingHttpCommon):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls, chart_template_ref=None):
|
||||
super().setUpClass(chart_template_ref=chart_template_ref)
|
||||
|
||||
cls.env.user.write({
|
||||
'groups_id': [
|
||||
(6, 0, (cls.env.ref('account.group_account_manager') + cls.env.ref('base.group_system')).ids),
|
||||
],
|
||||
})
|
||||
|
||||
cls.out_invoice = cls.env['account.move'].create({
|
||||
'move_type': 'out_invoice',
|
||||
'partner_id': cls.partner_a.id,
|
||||
'invoice_date': '2019-05-01',
|
||||
'date': '2019-05-01',
|
||||
'invoice_line_ids': [
|
||||
(0, 0, {'name': 'line1', 'price_unit': 100.0}),
|
||||
],
|
||||
})
|
||||
cls.out_invoice.action_post()
|
||||
|
||||
report_layout = cls.env.ref('web.report_layout_standard')
|
||||
|
||||
cls.company_data['company'].write({
|
||||
'primary_color': '#123456',
|
||||
'secondary_color': '#789101',
|
||||
'external_report_layout_id': report_layout.view_id.id,
|
||||
})
|
||||
|
||||
cls.env.ref('account.account_invoices_without_payment').report_type = 'qweb-html'
|
||||
|
||||
def test_render_account_document_layout(self):
|
||||
self.start_tour('/web', 'account_render_report', login=self.env.user.login, timeout=200)
|
||||
Loading…
Add table
Add a link
Reference in a new issue