openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #25091
[Bug 1197467] Re: duplicate inventory lines produce wrong posted inventories
-------- Message original --------
Sujet: Re: OpenERP Enterprise Edition Bugfix: duplicate inventory lines
produce wrong posted inventories
Date : Tue, 06 Aug 2013 09:11:08 -0000
De : Rifakat Haradwala (rha) <rha@xxxxxxxxxxxxxxxxxxxxxx>
Répondre à : Followers of
OpenERP-Enterprise-Edition-Bugfix-duplicate-inventory-lines-produce-wrong-posted-inventories
<support@xxxxxxxxxxxxxxxxxxxxxx>
Pour : Followers of
OpenERP-Enterprise-Edition-Bugfix-duplicate-inventory-lines-produce-wrong-posted-inventories
<ls@xxxxxxxxxxxxxxxx>
Hi Lionel,
I have created a patch which restricts creation of duplicate inventory
line on same date.
In the patch I have checked only Date part, and removed timestamp so for
all the inventory it checks it's date and not the time.
I still face a problem. When inventory is created on different date then
also it creates problem. Because when we create 1st inventory and
confirm it, that time stock move is generated in waiting state and does
not affect stock, so when creating the 2nd inventory it gets the same
stock level and creates duplicate stock move.
Could you please check the patch and let me know if there is any problem?
Please see the video also which I have shared with your email.
Regards,
Rifakat Haradwala,
OpenERP Enterprise Services.
Sent by OpenERP India using OpenERP <https://www.openerp.com/>. Access
your messages and documents through our Customer Portal
<https://accounts.openerp.com?db=openerp#action=login&token=9ppxSDjYL3MvY6ZRg2YS&type=signup&model=project.issue&id=594736>
** Changed in: openobject-addons
Status: New => In Progress
** Attachment added: "opw_inventory_duplicate.patch"
https://bugs.launchpad.net/bugs/1197467/+attachment/3803590/+files/opw_inventory_duplicate.patch
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1197467
Title:
duplicate inventory lines produce wrong posted inventories
Status in OpenERP Addons (modules):
In Progress
Bug description:
When you enter an inventory with several lines containing the same (product,location,prodlot) tuple, the posted inventory is not consistent : all lines are processes independently of each others, but they all relate to the same initial quantity.
As a consequence, differences are found even when the total of all the "duplicate" lines is right. Please see the attached screencast for an illustration of the problem, where I can make the stock wrong twice even though I entered correct quantities, split in 2 lines.
The simplest solution would be to forbid "duplicate" inventory lines
with the same (product,location,prodlot) tuple.
Another possible solution would be to let users insert duplicates, but
sum them up before computing the difference with the initial stock.
This would be interesting as it would allow users to enter products
one by one (possibly with a barcode scanner).
Lionel Sausin.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1197467/+subscriptions