[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 7ab8f0f2d8
commit a793ca56bc
72 changed files with 1911 additions and 401 deletions

View File

@@ -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>, 2018
# Pedro Castro Silva <pedrocs@exo.pt>, 2018
@@ -9,25 +9,27 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-04-17 02:41+0000\n"
"PO-Revision-Date: 2018-04-17 02:41+0000\n"
"POT-Creation-Date: 2018-04-27 01:12+0000\n"
"PO-Revision-Date: 2018-04-27 01:12+0000\n"
"Last-Translator: Pedro Castro Silva <pedrocs@exo.pt>, 2018\n"
"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n"
"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: pt\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
@@ -93,7 +95,7 @@ msgid "Display Name"
msgstr "Nome a Apresentar"
#. 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"
@@ -159,7 +161,7 @@ msgid "Name"
msgstr "Nome"
#. 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 "Não foi retornado nenhum resultado válido."