[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 Carolina Fernandez
parent 7b83ca7656
commit fa336d01a8
72 changed files with 1911 additions and 401 deletions

View File

@@ -1,28 +1,30 @@
# 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: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: hr\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\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 "Prikaži naziv"
#. 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"
@@ -151,7 +153,7 @@ msgid "Name"
msgstr "Naziv"
#. 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 "Nijedan valjani rezultat nije vraćen."