summaryrefslogtreecommitdiff
path: root/addons/mrp_subcontracting/tests
diff options
context:
space:
mode:
authorRobot Odoo <xmo+roboto@odoo.com>2019-05-24 14:15:52 +0200
committerGitHub <noreply@github.com>2019-05-24 14:15:52 +0200
commit079fcd6232e0c0338c353e6281dc5a930aa91e3a (patch)
treef577b36b18513ba3c2bee63cb2085d2a20695356 /addons/mrp_subcontracting/tests
parentaf86bc7288d252c6e1c3fe9b4fae3121ef459190 (diff)
parent3ab9b5192c71073a5c3d629ce598d5bafd3407a5 (diff)
[MERGE][IMP] project, *_timesheet: link analytic account and project
Impacted modules: hr_timesheet, project, sale_timesheet and sale_timesheet_purchase Currently, the link between the Analytic Account and the Project is non existant if Timesheets is not installed, and we track any cost linked to the AA set on the Project, but we only track the revenues linked to Timesheets. The purpose of this merge is to allow simple project (no timesheet installed or activated) to track their costs and revenues. This is done through the analytic account; indeed, all purchase order, sales order, invoices and vendor bills can generate analytic entries. It could then be interessting for user to see the costs and revenues for a project. We decided to redirect user from the project dashboard to the "costs/revenues" action of the analytic account itself, or (if timesheet is allowed on project) to the overview. This commit also integrates purchase orders on the project overview. Implementation: This PR aims to improve the link between Project and Analytic Accounting, by several actions: * Move all the analytic account business to project * Add an Other Revenues field in Project Overview, which represent the positive analytic entries from the AA set on the Project AND that are not linked to a Timesheet * Add two smart buttons on Project Overview to Purchase Orders and Vendor Bill of the project's AA * Add the results (Sales Orders and Timesheets) linked to the project's AA in the respective smart buttons of Project Overview * Add a "Profitability" link on the Kanban card of the Project bringing to the Costs & Revenues of the AA set on the Project to allow profitability tracking when there are no Timesheets. To do so, it was required to move back the analytic dependency from hr_timesheet to project, like before 3dd3e2648329995ddc309081787e19005d48ccd0 (but without the inheritS). Limitation: This will only make sense for project having a "one-to-one" relation with analytic account. If 2 projects are linked to the same AA, we have no way to deduce from which project the cost entry is linked. Task-1975022 closes odoo/odoo#33237 Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
Diffstat (limited to 'addons/mrp_subcontracting/tests')
0 files changed, 0 insertions, 0 deletions