stock - physical inventories - must not select product for lot entry

Bug #948456 reported by Ferdinand
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Low
OpenERP R&D Addons Team 2

Bug Description

currently it is necessary to enter the product in a newly created production lot - although it can only belong to the current article and only this one can be selected

Related branches

Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

Hello Ferdinand,

I don't agree with you as well as this is not a generalise issue that's why we can not consider this as a bug.

Note: When you reported a bug then provide the enough/ required information for that bug, otherwise It's very time consuming for bug management policy.

Thanks for understanding!

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
Ferdinand (office-chricar) wrote :

of course it is a general issue

if an form is opened for data entry and there is a mandatory m2o field with only ONE possible value (restircted by domain) this should be set automatically, as the user can not choose anything else

this is true for ALL lot creation operations (m2o) which are donw from a resources with product_id

I am sorry if you do not understand this

Changed in openobject-addons:
status: Invalid → New
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Ferdinand,

Yes, you are right . As per your comment#2 which is the current behaviour.

But I am sorry you don't provided the expected behaviour. There is only one domain which is "type <> service", So rather than service type's product we can select any one for data entry as you specified.

That's why again we requesting you provide what's the problem generated in current behaviour and what's your expected behaviour.

Thanks in advance!

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Ferdinand (office-chricar) wrote :

IMHO the required behavior is:

automatically fill a mandatory field if the user has only ONE item to select.

Changed in openobject-addons:
status: Incomplete → New
Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

Hello,

I faced the the problem only in web-client. So I have attached the Image for your reference.

Thanks!

Changed in openobject-addons:
status: New → Confirmed
affects: openobject-addons → openerp-web
Changed in openerp-web:
importance: Undecided → Low
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
Changed in openerp-web:
status: Confirmed → In Progress
Changed in openerp-web:
status: In Progress → Confirmed
Revision history for this message
Vidhin Mehta (OpenERP) (vme-openerp) wrote :

Context was not pass from xml file there fore this bug produce,here i attach patch also.Let me know if I miss something.

Revision history for this message
Ferdinand (office-chricar) wrote :

in my stock_view.xml (6.1) there is no group "group_production_lot"

and yes
adding context="{'product_id':product_id}"
in 4 places where prodlot_id (not prod_lot_id which in only in inventory where usually no lots should be created) is called
solves the problem

Amit Parik (amit-parik)
affects: openerp-web → openerp-addons
Changed in openerp-addons:
status: Confirmed → In Progress
affects: openerp-addons → openobject-addons
Changed in openobject-addons:
assignee: OpenERP R&D Web Team (openerp-dev-web) → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
status: In Progress → Confirmed
Revision history for this message
Nikita Parmar(OpenERP Trainee) (nikita.parmar-openerp-deactivatedaccount) wrote :

Hello,

  It has been fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-948456-nikita branch.
  Revision Num : 8660
  Revision ID: <email address hidden>

Thanks,
Nikita.

Changed in openobject-addons:
status: Confirmed → In Progress
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

Remote bug watches

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