Partner Category

class openerp.addons.magentoerpconnect.partner_category.MagentoResPartnerCategory(pool, cr)[source]

Bases: openerp.models.Model

openerp_id

The value of such a field is a recordset of size 0 (no record) or 1 (a single record).

Parameters:
  • comodel_name – name of the target model (string)
  • domain – an optional domain to set on candidate values on the client side (domain or string)
  • context – an optional context to use on the client side when handling that field (dictionary)
  • ondelete – what to do when the referred record is deleted; possible values are: 'set null', 'restrict', 'cascade'
  • auto_join – whether JOINs are generated upon search through that field (boolean, by default False)
  • delegate – set it to True to make fields of the target model accessible from the current model (corresponds to _inherits)

The attribute comodel_name is mandatory except in the case of related fields or field extensions.

tax_class_id
class openerp.addons.magentoerpconnect.partner_category.PartnerCategoryAdapter(connector_env)[source]

Bases: openerp.addons.magentoerpconnect.unit.backend_adapter.GenericAdapter

search(filters=None)[source]

Search records according to some criterias and returns a list of ids

Return type:list
openerp.addons.magentoerpconnect.partner_category.PartnerCategoryBatchImport

alias of openerp.addons.magentoerpconnect.partner_category.PartnerCategoryBatchImporter

class openerp.addons.magentoerpconnect.partner_category.PartnerCategoryBatchImporter(connector_env)[source]

Bases: openerp.addons.magentoerpconnect.unit.import_synchronizer.DelayedBatchImporter

Delay import of the records

class openerp.addons.magentoerpconnect.partner_category.PartnerCategoryImportMapper(connector_env)[source]

Bases: openerp.addons.connector.unit.mapper.ImportMapper

backend_id(record)[source]
direct = [('customer_group_code', 'name'), ('tax_class_id', 'tax_class_id')]
magento_id(record)[source]
openerp_id(record)[source]

Will bind the category on a existing one with the same name.

class openerp.addons.magentoerpconnect.partner_category.ResPartnerCategory(pool, cr)[source]

Bases: openerp.models.Model

magento_bind_ids

One2many field; the value of such a field is the recordset of all the records in comodel_name such that the field inverse_name is equal to the current record.

Parameters:
  • comodel_name – name of the target model (string)
  • inverse_name – name of the inverse Many2one field in comodel_name (string)
  • domain – an optional domain to set on candidate values on the client side (domain or string)
  • context – an optional context to use on the client side when handling that field (dictionary)
  • auto_join – whether JOINs are generated upon search through that field (boolean, by default False)
  • limit – optional limit to use upon read (integer)

The attributes comodel_name and inverse_name are mandatory except in the case of related fields or field extensions.