mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] contract_variable_quantity: Recompute price when changing qty
If you have contract lines with automatic price and your pricelist contains different prices per quantity, the price is not changed when computing quantity. This PR fixes this.
This commit is contained in:
committed by
Víctor Martínez
parent
7ab8f0f2d8
commit
a793ca56bc
@@ -1,7 +1,7 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * contract_variable_quantity
|
||||
#
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2016
|
||||
msgid ""
|
||||
@@ -11,18 +11,20 @@ msgstr ""
|
||||
"POT-Creation-Date: 2016-09-11 02:47+0000\n"
|
||||
"PO-Revision-Date: 2016-09-11 02:47+0000\n"
|
||||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n"
|
||||
"Language-Team: Spanish (Ecuador) (https://www.transifex.com/oca/teams/23907/es_EC/)\n"
|
||||
"Language-Team: Spanish (Ecuador) (https://www.transifex.com/oca/teams/23907/"
|
||||
"es_EC/)\n"
|
||||
"Language: es_EC\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: es_EC\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: model:ir.ui.view,arch_db:contract_variable_quantity.view_contract_line_qty_formula_form
|
||||
msgid ""
|
||||
"<code>\n"
|
||||
" result = env['product.product'].search_count([('sale_ok', '=', True)])\n"
|
||||
" result = env['product.product']."
|
||||
"search_count([('sale_ok', '=', True)])\n"
|
||||
" </code>"
|
||||
msgstr ""
|
||||
|
||||
@@ -89,7 +91,7 @@ msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: code:addons/contract_variable_quantity/models/contract.py:64
|
||||
#: code:addons/contract_variable_quantity/models/contract.py:81
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Error evaluating code.\n"
|
||||
@@ -102,6 +104,7 @@ msgid "Example of Python code"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: selection:account.analytic.contract.line,qty_type:0
|
||||
#: selection:account.analytic.invoice.line,qty_type:0
|
||||
msgid "Fixed quantity"
|
||||
msgstr ""
|
||||
@@ -122,6 +125,12 @@ msgstr ""
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: model:ir.model.fields,help:contract_variable_quantity.field_account_analytic_account_skip_zero_qty
|
||||
#: model:ir.model.fields,help:contract_variable_quantity.field_project_project_skip_zero_qty
|
||||
msgid "If checked, contract lines with 0 qty don't create invoice line"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_contract_line_qty_formula___last_update
|
||||
msgid "Last Modified on"
|
||||
@@ -144,22 +153,31 @@ msgid "Name"
|
||||
msgstr "Nombre"
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: code:addons/contract_variable_quantity/models/contract.py:66
|
||||
#: code:addons/contract_variable_quantity/models/contract.py:83
|
||||
#, python-format
|
||||
msgid "No valid result returned."
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_account_analytic_contract_line_qty_formula_id
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_account_analytic_invoice_line_qty_formula_id
|
||||
msgid "Qty. formula"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_account_analytic_contract_line_qty_type
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_account_analytic_invoice_line_qty_type
|
||||
msgid "Qty. type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_account_analytic_account_skip_zero_qty
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_project_project_skip_zero_qty
|
||||
msgid "Skip Zero Qty Lines"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: selection:account.analytic.contract.line,qty_type:0
|
||||
#: selection:account.analytic.invoice.line,qty_type:0
|
||||
msgid "Variable quantity"
|
||||
msgstr ""
|
||||
|
||||
Reference in New Issue
Block a user