← Back to team overview

openerp-india team mailing list archive

[Bug 1071126] Re: [trunk] product demo data refers to field from stock module

 

Fixed at revision 7956 revid:vmt@xxxxxxxxxxx-20121106150431-rem9us13kevan8y0.
Thanks for reporting and providing a patch!

** Changed in: openobject-addons
       Status: Confirmed => Fix Released

** Changed in: openobject-addons
    Milestone: None => 7.0

-- 
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/1071126

Title:
  [trunk] product demo data refers to field from stock module

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  Hello.

  If you install only sale:

  2012-10-24 23:49:44,341 3351 INFO trunk-test openerp.modules.loading: module product: loading product_demo.xml
  2012-10-24 23:49:44,650 3351 WARNING trunk-test openerp.osv.orm: No such field(s) in model product.product: sale_delay.
  2012-10-24 23:49:44,722 3351 WARNING trunk-test openerp.osv.orm: No such field(s) in model product.product: sale_delay.
  2012-10-24 23:49:44,795 3351 WARNING trunk-test openerp.osv.orm: No such field(s) in model product.product: sale_delay.

  
  What is corious is that runbot doesnt show this warning:

  (Build 23095)
  server (4508)
  addons (7848)
  web (3307)

  Making an rgrep:

  [ ~/instancias/7.0/addons ] 
  (184 files, 760Kb)  $: rgrep sale_delay . --exclude=*.po*
  ./stock/product_view.xml:            		<field name="sale_delay" attrs="{'readonly':[('sale_ok','=',False)]}"/>
  ./stock/product_view.xml:                    <label for="sale_delay"/>
  ./stock/product_view.xml:                            <field name="sale_delay" class="oe_inline"/> days
  ./stock/product.py:        'sale_delay': fields.float('Customer Lead Time', help="This is the average delay in days between the confirmation of the customer order and the delivery of the finished products. It's the time you promise to your customers."),
  ./stock/product.py:        'sale_delay': 7,
  Binary file ./stock/product.pyc matches
  Binary file ./sale_stock/sale_stock.pyc matches
  ./sale_stock/sale_stock.py:        res['value']['delay'] = (product_obj.sale_delay or 0.0)
  ./product/product_demo.xml:            <field name="sale_delay">4.0</field>
  ./product/product_demo.xml:            <field name="sale_delay">4.0</field>
  ./product/product_demo.xml:            <field name="sale_delay">7.0</field>

  
  We can see easily that demo on product has conflicts with field sale_delay added by stock (which depend of product) this demo data must be added on stock.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1071126/+subscriptions


References