Merge lp:~openerp-dev/openobject-addons/6.1-opw-577674-jap into lp:openobject-addons/6.1

Proposed by Jagdish Panchal (Open ERP)
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 6935
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-577674-jap
Merge into: lp:openobject-addons/6.1
Diff against target: 21 lines (+2/-2)
1 file modified
account_anglo_saxon/invoice.py (+2/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-577674-jap
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Review via email: mp+118498@code.launchpad.net

Description of the change

Hello,

Steps to Reproduce the issue:

1) Install account_anglo_saxon and sale module.
2) Set product valuation as 'realtime' and stock input and output account.
3) Create Customer Invoice and validate it.
4) Check the Journal Entries there is account move in stock Stock output.

This MP contains fix for this issue

Thanks,
jap

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

This bug was qualified as Already Fixed on Trunk (means that it was already fixed and merged in Trunk). If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Thanks,
Naresh Soni

Unmerged revisions

6935. By Jagdish Panchal (Open ERP)

[FIX] account_anglo_saxon: Fix the problem stock move entry in stok output account when prodcut valution is manual.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'account_anglo_saxon/invoice.py'
--- account_anglo_saxon/invoice.py 2012-02-15 16:06:28 +0000
+++ account_anglo_saxon/invoice.py 2012-11-23 12:33:21 +0000
@@ -40,7 +40,7 @@
4040
41 if inv.type in ('out_invoice','out_refund'):41 if inv.type in ('out_invoice','out_refund'):
42 for i_line in inv.invoice_line:42 for i_line in inv.invoice_line:
43 if i_line.product_id:43 if i_line.product_id and i_line.product_id.valuation == 'real_time':
44 if inv.type == 'out_invoice':44 if inv.type == 'out_invoice':
45 # debit account dacc will be the output account45 # debit account dacc will be the output account
46 # first check the product, if empty check the category46 # first check the product, if empty check the category
@@ -87,7 +87,7 @@
87 })87 })
88 elif inv.type in ('in_invoice','in_refund'):88 elif inv.type in ('in_invoice','in_refund'):
89 for i_line in inv.invoice_line:89 for i_line in inv.invoice_line:
90 if i_line.product_id:90 if i_line.product_id and i_line.product_id.valuation == 'real_time':
91 if i_line.product_id.type != 'service':91 if i_line.product_id.type != 'service':
92 # get the price difference account at the product92 # get the price difference account at the product
93 acc = i_line.product_id.property_account_creditor_price_difference and i_line.product_id.property_account_creditor_price_difference.id93 acc = i_line.product_id.property_account_creditor_price_difference and i_line.product_id.property_account_creditor_price_difference.id