Steps to reproduce the bug: - Set your user in multi company - Set a default analytic account A for product P with your company - Create a PO with P and deliver it - Generate the invoice. Bug: The analytic account A was not set on the line. opw:1831998