Sorry to come back on the subject, but I think this "company" denormalisation should be applied to even more tables. It would also benefit to the KIS principle and would avoid mistakes of forgetting to include not obvious where clauses.
I checked OpenERP database: they have included "company" field in many tables. In a real case application, either company field will be simply not used (viz one company / database) or if used, will give headache to the programmer. Accounting module being the core module, I think a lot of attention should be given to it, to make it reliable and comfortable to use. IMO it is not currently the case. Please take my comment easy. Thanks
