← Back to team overview

avanzosc team mailing list archive

[Bug 814556] [NEW] crash on installation of mrp_master_extension

 

Public bug reported:

Hi,

I am trying on a new DB.
I am on revision 108

I install only mrp_analytics_control (with demo data)
and I get this error:
ERROR:db.cursor:bad query: insert into "mrp_workcenter" (id,resource_id,"capacity_per_cycle",create_uid,create_date) values (1,11,1.0,1,now())
IntegrityError: null value in column "location_id" violates not-null constraint

I think its due to the fact that this module inherits mrp_workcenter and adds this line:
'location_id': fields.many2one('stock.location', 'Location', required= True, domain=[('usage','in',('internal','supplier'))]),
so the field location_id is required

and then when the standard mrp module is installed, and mrp_demo.xml has
to be loaded... the error appears

** Affects: avanzosc
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Avanzosc
Developers, which is subscribed to Avanzosc developments.
https://bugs.launchpad.net/bugs/814556

Title:
  crash on installation of mrp_master_extension

Status in Avanzosc OpenERP modules:
  New

Bug description:
  Hi,

  I am trying on a new DB.
  I am on revision 108

  I install only mrp_analytics_control (with demo data)
  and I get this error:
  ERROR:db.cursor:bad query: insert into "mrp_workcenter" (id,resource_id,"capacity_per_cycle",create_uid,create_date) values (1,11,1.0,1,now())
  IntegrityError: null value in column "location_id" violates not-null constraint

  I think its due to the fact that this module inherits mrp_workcenter and adds this line:
  'location_id': fields.many2one('stock.location', 'Location', required= True, domain=[('usage','in',('internal','supplier'))]),
  so the field location_id is required

  and then when the standard mrp module is installed, and mrp_demo.xml
  has to be loaded... the error appears

To manage notifications about this bug go to:
https://bugs.launchpad.net/avanzosc/+bug/814556/+subscriptions


Follow ups

References