Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

account.move entries for outgoing stock.moves.

By
Nilesh Galoriya
on 5/14/16, 10:33 AM 389 views

found this below code which restricts to create account.move entries

Ref: stock_account-->stock_account.py-->_account_entry_move

    def _account_entry_move(self, cr, uid, quants, move, context=None):

"""
Accounting Valuation Entries
quants: browse record list of Quants to create accounting valuation entries for. Unempty and all quants are supposed to have the same location id (thay already moved in)
move: Move to use. browse record
"""
if context is None:
context = {}
location_obj = self.pool.get('stock.location')
location_from = move.location_id
location_to = quants[0].location_id
company_from = location_obj._location_owner(cr, uid, location_from, context=context)
company_to = location_obj._location_owner(cr, uid, location_to, context=context)
if move.product_id.valuation != 'real_time':
return False
for q in quants:
if q.owner_id:
#if the quant isn't owned by the company, we don't make any valuation entry
                return False


Can someone please suggest how is a account.move generated for outgoing shipment.

0
Apoorv Soral
On 5/15/16, 12:55 AM

I tried testing it with the inventory valuation set to real time valuation but the code says it will only create an account move if the quant.owner is blank, which never is. So it never creates an account.move

Am I missing something 

0
Priyesh
On 5/14/16, 3:17 PM

 Just set "Inventory Valuation" in Products form, in Accounting Tab as a "Real Time" . Once you confirm the SO with this product and deliver it to the customer, Odoo will create a quant as well as Accounting entries for that move. 

thanks priyesh for your reply, but for stock movement no journal entry is generated, means no entries is created in stock journal as product is move from stock.

Nilesh Galoriya
on 5/15/16, 6:24 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/14/16, 10:33 AM
Seen: 389 times
Last updated: 5/15/16, 12:56 AM