l10n_br_sale.models package

Submodules

l10n_br_sale.models.res_company module

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

Base: openerp.models.Model

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

l10n_br_sale.models.res_config module

class l10n_br_sale.models.res_config.SaleConfiguration(pool, cr)[código fonte]

Base: openerp.models.TransientModel

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

l10n_br_sale.models.sale module

class l10n_br_sale.models.sale.SaleOrder(pool, cr)[código fonte]

Base: openerp.models.Model

amount_discount

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_gross

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
copy_note
discount_rate

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

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
invoiced_rate

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)
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_discount_rate()[código fonte]
onchange_fiscal()[código fonte]

Método chamado ao mudar a categoria fiscal para refinir a posição fiscal de acordo com as regras de posição fiscal

class l10n_br_sale.models.sale.SaleOrderLine(pool, cr)[código fonte]

Base: openerp.models.Model

discount_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)
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.

onchange_fiscal()[código fonte]
price_gross

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)
price_subtotal

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)
product_id_change(*args, **kwargs)[código fonte]

Module contents