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
Trueto make fields of the target model accessible from the current model (corresponds to_inherits)
The attribute
comodel_nameis 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
-
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.DelayedBatchImporterDelay import of the records
-
class
openerp.addons.magentoerpconnect.partner_category.PartnerCategoryImportMapper(connector_env)[source]¶ Bases:
openerp.addons.connector.unit.mapper.ImportMapper-
direct= [('customer_group_code', 'name'), ('tax_class_id', 'tax_class_id')]¶
-
-
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_namesuch that the fieldinverse_nameis equal to the current record.Parameters: - comodel_name – name of the target model (string)
- inverse_name – name of the inverse
Many2onefield incomodel_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_nameandinverse_nameare mandatory except in the case of related fields or field extensions.
-