stock.move and stock.inventory.line no _check_UOM

Bug #953324 reported by Juan Márquez
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Low
OpenERP R&D Addons Team 2

Bug Description

I'm working on data migration via web services and found this bug:

If I make any stock move with a product with X uom categ is't possible to do moves with any other uom's categ in stock.move and stock.inventory.line because this models don't have a _check_uom constraint.

I create a extension for stock.py to do this validations (see attachment).

Related branches

Revision history for this message
Juan Márquez (jmarquez) wrote :
Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Mayur Maheshwari(OpenERP) (mma-openerp) wrote :

Hello Juan Márquez,

Thanks for your contribution & Nice Patch.
It has been fixed in lp:~openerp-dev/openobject-addons/trunk-bug-953324-mma With
Revision ID: <email address hidden>
Revision num: 6670

It will be available in trunk soon.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Juan Márquez (jmarquez) wrote :

It's a good idea add a "domain" filter in xml view for product_uom field: filter the uom selection list by product's uom categ.

Changed in openobject-addons:
status: Fix Committed → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Rajesh Prajapati (OpenERP) (rpr-tinyerp) wrote :

Hello

It has been fixed in lp:~openerp-dev/openobject-addons/trunk-bug-953324-rpr with following Revision ID and No

Revision ID:<email address hidden>
Revision No: 7375

Thanks.
Rajesh

Changed in openobject-addons:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.