We have a requirement for sharing the same chart of accounts among all the companies in a Tryton database. In the first place we didn't want to change anything in the account module because it seemed too invasive but the alternative keeping accounts in sync among all companies seems to be worse and quite complex.
The need for sharing the same chart of accounts comes from the need of the same team of accountants working on 7 companies having predictable accounts when working. The alternative for them is first realizing that an account is missing and creating it manually on each company but also with the risk of not remembering a given account should exist and use the wrong one instead. An extra advantage for them is that having the same chart of accounts eases creating reports outside Tryton. So I've been looking at how hard it would be to make the company not required in account.account and related models. What I've seen so far is that: - Company field in account.account could be removed. It is mainly used for two things: - Determining the currency, which could be replaced by picking the currency (and digits) of the company the user is using currently. The account itself does not need to be linked to a company or currency because it is only used for a Function field. - Determining the company in account moves and account move lines. For this, we should add the company field in account.move or account.move.line. Don't see much of a problem. It would mean changing some python code and some queries, but doesn't seem extremely complex. - It may also be necessary to change some domains and checks that require the company of the account to be the same of another record - Taxes also have a company but again the most important thing for the tax is not the company but the currency. Some taxes can have a fixed amount and thus this needs a currency. I think we could replace the m2o of the company with a m2o to the currency. Also, we could add some checks to ensure the currency of the tax is the same of the company when using the taxes (similar to what's currently done with the company). What do you think? Anyone else with similar needs? Showstoppers I didn't think of? Any chance of making it into Tryton? -- Albert Cervera i Areny Tel. 93 553 18 03 @albertnan www.NaN-tic.com