[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:
Pedro M. Baeza
2018-04-24 13:22:37 +02:00
committed by Víctor Martínez
parent 67b7449546
commit cda52c9e8e
72 changed files with 1911 additions and 401 deletions

View File

@@ -1,32 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * contract_variable_quantity
#
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-30 11:59+0000\n"
"PO-Revision-Date: 2018-03-30 11:59+0000\n"
"POT-Creation-Date: 2018-04-27 01:12+0000\n"
"PO-Revision-Date: 2018-04-27 01:12+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2018\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es\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 ""
"<code>\n"
" result = env['product.product'].search_count([('sale_ok', '=', True)])\n"
" result = env['product.product']."
"search_count([('sale_ok', '=', True)])\n"
" </code>"
#. module: contract_variable_quantity
@@ -94,7 +96,7 @@ msgid "Display Name"
msgstr "Nombre mostrado"
#. module: contract_variable_quantity
#: code:addons/contract_variable_quantity/models/contract.py:77
#: code:addons/contract_variable_quantity/models/contract.py:81
#, python-format
msgid ""
"Error evaluating code.\n"
@@ -160,7 +162,7 @@ msgid "Name"
msgstr "Nombre"
#. module: contract_variable_quantity
#: code:addons/contract_variable_quantity/models/contract.py:79
#: code:addons/contract_variable_quantity/models/contract.py:83
#, python-format
msgid "No valid result returned."
msgstr "No se devuelve un valor válido."