← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 303455] Re: Inconsistent behaviour in _inherits

 

** Branch linked: lp:~thibaut-dirlik/openobject-server/fix-inherits-
bug-303455

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/303455

Title:
  Inconsistent behaviour in _inherits

Status in OpenERP Server:
  Confirmed

Bug description:
  If one object _inherits from another (like product.product from
  product.template) and both objects have a column with the same name,
  the value of the father is shown in the view, however when saving the
  child object, the child's table is written.

  Example:

  Try to move 'weight' field from product.template to product.product.
  You can define a 'weight' column for product.product. When you open
  the product form, the displayed 'weight' will be the one retrieved
  from the product_template table, but if you change the value and save
  it, the value will be saved on the product_product table.

  Expected behaviour: When the same column exists in both, parent and
  child, the child's value should be used.

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