Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5170 Lượt xem

We are a company with 3 sub companies.
We want to have invoices with different logo's, but just one chart of account.

Every tutorial is about having multiple chart of accounts, and everytime we try to work around it, we get permission errors when creating invoices.

We have tried it with one Admin for all companies, multiple Admins (for each company one admin), multiple warehouses with each it's own admin, nothing works. We get stuck on adding taxes to the products, or with creating invoices. (Permission errors, or the system tries to force us to use multiple chart of accounts).

Who knows a way to get what we want?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Same target here for a testing project.
Research result: "Webkit Report engine" allows to design completely different layouts.
--> webkit-invoice Templates are available by community but free until the maximum of 2 users...

I can confirm a completely different Layout in Document Preview from RML Report Engine after generating a new company with no Source-Company.

Having generated a new Qweb-Invoice-report (http://www.askmpa.com/creating-multiple-invoice-templates-in-odoo-v8/) i see the following behaviour (v8):

  • Report-Type "RML pdf" prduces the following error with or without webkit report engine:
    <type 'exceptions.Exception'>,Unhandled report type  

  • Report-Type "PDF" uses the Layout of the first company, not as wished of the second one.

  • Editing the view "report_invoice_secondcompany_document" to <t t-call="report.external_layout_secondcompany">
    Duplicating the views "external_layout", "external_layout_header", "external_layout_footer" to *_secondcompany 
    as well as adding according templates in addons/report/views/layouts.xml 
    --> should allow definition of an independent layout. 
    But it doesn't. By generating invoice following error occurs:
    QWebException: External ID not found in the system: report.external_layout_secondcompany


The only uncomfortable way to go is print invoices with one single layout and replace Headers and Footers via PDF editor until a solution is fount... :(

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 7 17
4541
1
thg 3 15
4065
2
thg 3 24
1545
3
thg 12 22
6029
1
thg 4 21
4755