[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,32 +1,36 @@
# 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 (Croatia) (https://www.transifex.com/oca/teams/23907/hr_HR/)\n"
"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/"
"hr_HR/)\n"
"Language: hr_HR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: hr_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 ""
"<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
@@ -92,7 +96,7 @@ msgid "Display Name"
msgstr "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"
@@ -156,7 +160,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 "Nije vraćen nijedan valjani rezultat."
@@ -197,8 +201,8 @@ msgid ""
"float/integer value of the quantity to invoice in the variable 'result'."
msgstr ""
"Morate upisati valjani blok python koda koji se u određenom trenutku "
"izvršava i vraća cjelobrojnu/decimalnu vrijednost kao rezultat za količine u"
" stavkama računa "
"izvršava i vraća cjelobrojnu/decimalnu vrijednost kao rezultat za količine u "
"stavkama računa "
#. module: contract_variable_quantity
#: model:ir.model,name:contract_variable_quantity.model_account_analytic_invoice_line