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,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."
|
||||
|
||||
Reference in New Issue
Block a user