l10n_br_account_product_service.models package

Submodules

l10n_br_account_product_service.models.account_invoice module

class l10n_br_account_product_service.models.account_invoice.AccountInvoice(pool, cr)[código fonte]

Base: openerp.models.Model

document_serie_id

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

Parâmetros:
  • 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.

fields_view_get(*args, **kwargs)[código fonte]
fiscal_category_id

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

Parâmetros:
  • 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.

fiscal_document_id

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

Parâmetros:
  • 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.

fiscal_type
Parâmetros:
  • selection – specifies the possible values for this field. It is given as either a list of pairs (value, string), or a model method, or a method name.
  • selection_add – provides an extension of the selection in the case of an overridden field. It is a list of pairs (value, string).

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

onchange_fiscal_document_id()[código fonte]

l10n_br_account_product_service.models.l10n_br_account_product_service module

class l10n_br_account_product_service.models.l10n_br_account_product_service.L10n_brAccountDocumentSerie(pool, cr)[código fonte]

Base: openerp.models.Model

Inherit class to change default value of fiscal_type field

fiscal_type
Parâmetros:
  • selection – specifies the possible values for this field. It is given as either a list of pairs (value, string), or a model method, or a method name.
  • selection_add – provides an extension of the selection in the case of an overridden field. It is a list of pairs (value, string).

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

class l10n_br_account_product_service.models.l10n_br_account_product_service.L10n_brAccountFiscalCategory(pool, cr)[código fonte]

Base: openerp.models.Model

Inherit class to change default value of fiscal_type field

fiscal_type
Parâmetros:
  • selection – specifies the possible values for this field. It is given as either a list of pairs (value, string), or a model method, or a method name.
  • selection_add – provides an extension of the selection in the case of an overridden field. It is a list of pairs (value, string).

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

l10n_br_account_product_service.models.product module

class l10n_br_account_product_service.models.product.ProductTemplate(pool, cr)[código fonte]

Base: openerp.models.Model

Inherit class to change default value of fiscal_type field

fiscal_type
Parâmetros:
  • selection – specifies the possible values for this field. It is given as either a list of pairs (value, string), or a model method, or a method name.
  • selection_add – provides an extension of the selection in the case of an overridden field. It is a list of pairs (value, string).

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

l10n_br_account_product_service.models.res_partner module

class l10n_br_account_product_service.models.res_partner.AccountFiscalPosition(pool, cr)[código fonte]

Base: openerp.models.Model

Override class to implement custom mapping tax methods to defini brazilian taxes using new fields

map_tax(*args, **kwargs)[código fonte]

Custom method called in new api

Module contents