Skip to Content
Menu
This question has been flagged

hello there,

We are on a problem since many days.

We are in a "real-time (automated)" stock management for all our products.

We have set a virtual location with location name = "gift to customer" and location type = Inventory.

Stock valuation account (incoming and outgoing) for this location is set to the charge account "5.2.200.3 - gift to customer"

So, when we make an internal transfert from "stock" location to "gift to customer" location, we get this journal entry :

    114006 - stock valuation : 100 (CT)

    5.2.200.3 - gift to customer : 100 (DT)


But it is not enough for us. This internal transfert should bring these journal entry :

    114006 - stock valuation : 100 (CT)

    5.2.200.3 - gift to customer : 100 (DT)

    114004 - stock output : 100 (DT)

    411000 - Inside Sales (CT)


Questions

How to add lines automatically to an account move already created by a stock move?

How could we proceed to manage this?

Should we use an existing module? Which module?

Should we create our own module?


Could you please help

Thanks!


EDIT #1

An other way to make what we want should be this way...

Actually, we could make a delivery order. Journal items created by this stock move would be :

    114006 - stock valuation : 100 (CT)

    114004 - stock output : 100 (DT)
 

But it is not enough for us. This delivery order should bring these journal entry. The result should be exactly the same than above :

    114006 - stock valuation : 100 (CT)

    114004 - stock output : 100 (DT)

    5.2.200.3 - gift to customer : 100 (DT)

    411000 - Inside Sales (CT)


Avatar
Discard
Author Best Answer

Here is our solution.

We have created a new module who override the existing stock_account module.

Two new fields are created on the virtual location of type "inventory".

These two new fields contain a debit and a credit account.

The new module add two lines in the account move associated to an internal transfert.

OUr code : https://github.com/lapagept/odoo-8/tree/master/virtual_location_inventory_account_move_lapagept

Avatar
Discard
Related Posts Replies Views Activity
1
Nov 24
19209
3
Jan 18
13577
0
Feb 20
2416
1
Aug 16
8923
2
Mar 15
7949