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
67b7449546
commit
cda52c9e8e
@@ -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>, 2017
|
||||
msgid ""
|
||||
@@ -12,17 +12,18 @@ msgstr ""
|
||||
"PO-Revision-Date: 2017-12-29 03:46+0000\n"
|
||||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
|
||||
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
|
||||
"Language: ca\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: ca\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 ""
|
||||
|
||||
@@ -89,7 +90,7 @@ msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: code:addons/contract_variable_quantity/models/contract.py:64
|
||||
#: code:addons/contract_variable_quantity/models/contract.py:81
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Error evaluating code.\n"
|
||||
@@ -123,6 +124,12 @@ msgstr ""
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: model:ir.model.fields,help:contract_variable_quantity.field_account_analytic_account_skip_zero_qty
|
||||
#: model:ir.model.fields,help:contract_variable_quantity.field_project_project_skip_zero_qty
|
||||
msgid "If checked, contract lines with 0 qty don't create invoice line"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_contract_line_qty_formula___last_update
|
||||
msgid "Last Modified on"
|
||||
@@ -145,7 +152,7 @@ msgid "Name"
|
||||
msgstr "Nom"
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: code:addons/contract_variable_quantity/models/contract.py:66
|
||||
#: code:addons/contract_variable_quantity/models/contract.py:83
|
||||
#, python-format
|
||||
msgid "No valid result returned."
|
||||
msgstr ""
|
||||
@@ -162,6 +169,12 @@ msgstr ""
|
||||
msgid "Qty. type"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_account_analytic_account_skip_zero_qty
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_project_project_skip_zero_qty
|
||||
msgid "Skip Zero Qty Lines"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: selection:account.analytic.contract.line,qty_type:0
|
||||
#: selection:account.analytic.invoice.line,qty_type:0
|
||||
|
||||
Reference in New Issue
Block a user