Closed victor-champonnois closed 2 months ago
@robinkeunen
@robinkeunen use case added in the commit message
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.
This module adds an option to force the use of the product analytic account for service products invoiced on timesheets.
Use case: We have a service product, invoiced on timesheet and that triggers the creation of a project when a SO is confirmed. Note that doing this, an analytic account is created and linked to the SO (module _saleproject) An income analytic account is defined on this product. We want this analytic account to be in the analytic distribution of the invoice lines that are created from the SO. Now, this is not possible. When creating an invoice, the analytic distribution on the invoice lines is the SO analytic account.
This option forces the use of the product analytic account on the invoice line instead.
I am not sure if this is the right place to make this change, since this module _productanalytic does not depend on _saleproject. Tell me if you think of a better place for this code.
Forward porting of https://github.com/OCA/account-analytic/pull/613