c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #16897
[Bug 719468] Re: [trunk6-dev]Incorrect assignment in object-generating
hello Azazahmed,
in my new class i give not the same name as inherited object.
please read:
new class -> supplier_productinfo --> table =product_supplierinfo
inherited object -> product.supplierinfo -->table =product_supplierinfo
in my case it will not create a new table. i wish to use the table
product_supplierinfo with this new object
In this new class, the 5 columns are associated to object "supplier.productinfo" and not to the inherited object "product.supplierinfo"
But i find these cols in the inherited object "product.supplierinfo".
In Openerp V5 it works fine.
This is a BUG and not a question!
--
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/719468
Title:
[trunk6-dev]Incorrect assignment in object-generating
Status in OpenERP Server:
Invalid
Bug description:
class supplier_productinfo(osv.osv):
_name = "supplier.productinfo"
_inherit = "product.supplierinfo"
_table = "product_supplierinfo"
_description = "Information about a supplier product"
_columns = {
'code' : fields.related('product_id', type="many2one", relation="product.product", string='[Art.-Nummer] Bezeichnung'),
'description_purchase' : fields.text('Purchase Description',translate=True),
'product_name2' : fields.char('Zusatz', size=128),
'price' : fields.related('pricelist_ids','price',type='float', string='Price'),
'pricelist_ids' : fields.one2many('pricelist.supplierproductinfo', 'suppinfo_id', 'Supplier Pricelist'),
}
_order = 'sequence'
supplier_productinfo()
In this new class, the 5 columns are associated to object "supplier.productinfo".
But i find these cols in the inherited object "product.supplierinfo". This is wrong.
In Openerp V5 it works fine.
Follow ups
References