On 2015-09-01 17:17, Cédric Krier wrote: > Hi, > > I'm looking for a way to put expenses (purchases) into the cost of a > project. > The usual way I have seen in similar software is to use analytic account > but I think it is not the correct way for 2 reasons: > > - analytic accounting almost always misses the employee cost > (because it is too much work) > > - analytic accounting is a normally tool design to allow users to > create its own/custom accounting view (not for developers) > > So for now, the project_revenue module computes a theoretical revenue > (list price * effort) and a cost (timesheet * employee cost). > It is only missing the expenses to get the complete picture of the > profitability of a project/task. If we use the project_invoice module to > know the real/invoiced revenue. > > So my proposal is to add on project_revenue an extra_depends on purchase > which will add a many2one field on purchase line to a project (with > possibility to add line to project later via a one2many on it). > With this link we could include the invoiced amount of those purchase > line to the cost of the project. > > Of course some could say that sometimes a purchase line is linked to 2 > projects. I think it is a very rare case that could be solved by > splitting the line in two. > > So what do you think?
Here is the developpement: https://bugs.tryton.org/issue4951 -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/