171
193
'magento_root_category':fields.function(_get_rootcategory, fnct_inv = _set_rootcategory, type="many2one", relation="product.category", string="Root Category"),
172
194
'exportable_root_category_ids': fields.function(_get_exportable_root_category_ids, type="many2many", relation="product.category", method=True, string="Root Category"), #fields.function(_get_exportable_root_category_ids, type="many2one", relation="product.category", method=True, 'Exportable Root Categories'),
173
195
'storeview_ids': fields.one2many('magerp.storeviews', 'shop_id', 'Store Views'),
197
_get_exportable_category_ids, type='many2many', relation="product.category",
174
199
'exportable_product_ids': fields.function(_get_exportable_product_ids, method=True, type='one2many', relation="product.product", string='Exportable Products'),
175
200
#TODO fix me, it's look like related field on a function fielf doesn't work.
176
201
#'magento_shop': fields.related('referential_id', 'magento_referential',type="boolean", string='Magento Shop', readonly=True),