l10n_br_purchase.models package

Submodules

l10n_br_purchase.models.procurement module

class l10n_br_purchase.models.procurement.ProcurementOrder(pool, cr)[código fonte]

Base: openerp.models.Model

l10n_br_purchase.models.purchase module

class l10n_br_purchase.models.purchase.PurchaseOrder(pool, cr)[código fonte]

Base: openerp.models.Model

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

The precision digits are given by the attribute

Parâmetros:digits – a pair (total, decimal), or a function taking a database cursor and returning a pair (total, decimal)
amount_freight

The precision digits are given by the attribute

Parâmetros:digits – a pair (total, decimal), or a function taking a database cursor and returning a pair (total, decimal)
amount_insurance

The precision digits are given by the attribute

Parâmetros:digits – a pair (total, decimal), or a function taking a database cursor and returning a pair (total, decimal)
amount_tax

The precision digits are given by the attribute

Parâmetros:digits – a pair (total, decimal), or a function taking a database cursor and returning a pair (total, decimal)
amount_total

The precision digits are given by the attribute

Parâmetros:digits – a pair (total, decimal), or a function taking a database cursor and returning a pair (total, decimal)
amount_untaxed

The precision digits are given by the attribute

Parâmetros:digits – a pair (total, decimal), or a function taking a database cursor and returning a pair (total, decimal)
cnpj_cpf

Basic string field, can be length-limited, usually displayed as a single-line string in clients

Parâmetros:
  • size (int) – the maximum size of values stored for that field
  • translate (bool) – whether the values of this field can be translated
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.

ie

Basic string field, can be length-limited, usually displayed as a single-line string in clients

Parâmetros:
  • size (int) – the maximum size of values stored for that field
  • translate (bool) – whether the values of this field can be translated
legal_name

Basic string field, can be length-limited, usually displayed as a single-line string in clients

Parâmetros:
  • size (int) – the maximum size of values stored for that field
  • translate (bool) – whether the values of this field can be translated
onchange_fiscal()[código fonte]
class l10n_br_purchase.models.purchase.PurchaseOrderLine(pool, cr)[código fonte]

Base: openerp.models.Model

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_position

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.

freight_value

The precision digits are given by the attribute

Parâmetros:digits – a pair (total, decimal), or a function taking a database cursor and returning a pair (total, decimal)
insurance_value

The precision digits are given by the attribute

Parâmetros:digits – a pair (total, decimal), or a function taking a database cursor and returning a pair (total, decimal)
onchange_fiscal()[código fonte]
onchange_product_id(*args, **kwargs)[código fonte]

Método para implementar a inclusão dos campos categoria fiscal e posição fiscal de acordo com valores padrões e regras de posicões fiscais

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

Método adaptado para a nova API já que este mesmo chama o método onchange_product_id

other_costs_value

The precision digits are given by the attribute

Parâmetros:digits – a pair (total, decimal), or a function taking a database cursor and returning a pair (total, decimal)

l10n_br_purchase.models.res_company module

class l10n_br_purchase.models.res_company.ResCompany(pool, cr)[código fonte]

Base: openerp.models.Model

purchase_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.

Module contents