Odooers论坛

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

How to get the cost of products on analytic account?

形象
odoo
1 备注
形象
丢弃
形象
odoo
-

Anyone an idea?

5 答案
0
形象
odoo
最佳答案

There is no way in stock Odoo to do this, at least not that I could find. However,  we can create a solution.

My solution was to add on to my existing (custom) accounting module. It was quite some hassle to figure out the best way to do this, but I managed a solution, although I am not sure if it is elegant.

Background:

Journal Entries are created in the accounting account (distinct from an analytic account) by the system for outgoing stock moves for delivery orders (in the default setup, anyway). Each of these journal entries can optionally have an associated analytic _distribution_. In turn, this distribution can be associated with a specific analytic account (Ugh).

I have modified the python method used to create these such that the accounting entry will inherit the analytic account from the sale order (if one is specified). In addition, I have a procedure for automatically creating analytic Distributions linked to the appropriate analytic accounts at the level of a job (in my instance, we use Opportunities). If you do not have the ability to create a custom module, you can also perform the same functionality by creating an automated action triggered on creation.

Note that it is also possible to set an analytic account by default for each product sold - so, for example, a purchase of an 'Airfare' product would automatically be appended to an 'Airfare' analytic account. This might conflict with any automated rule, so a custom module is the best option.

I consider the lack of this feature in stock Odoo to be a pretty big gaping hole. I imagine most people don't use the analytics, then, or most companies that use them are service companies. O I missing something big (very very possible, but I couldnt figure out a better way in the existing codebase after some searching... :( )

Sorry, looks like I cant post screenshots, but I'll make a post to the OCA, and anyone interested in this in more detail can contact me privately.

形象
丢弃
0
形象
odoo
最佳答案

Anyone, please?

形象
丢弃
0
形象
odoo
最佳答案

Same question here! Anyone?

形象
丢弃
0
形象
odoo
最佳答案

same question here , but am thinking the only was is to run a custom report thats the only solution


形象
丢弃
0
形象
odoo
最佳答案

Hi, 

a custom solution is necessary. Please pay attention to do not post cost twice, i.e. at consumption and at vendor invoice posting. Unfortunately in odoo it is possible to buy a storage item on stock by entering an analytic account also. therefore we have the item on stock and its analytic cost posted also.

Regards

Claudio Candito

形象
丢弃