[FIX] contract: Handle properly multi-company setups

If you have contracts in several companies, cron will create all of them, but
property fields will be populated with incorrect data as the taken company is
the main from the cron user (usually admin).
This commit is contained in:
Pedro M. Baeza
2020-01-08 17:18:28 +01:00
committed by Christopher Rogos
parent d1e7dde56e
commit abf30c16b4
4 changed files with 25 additions and 19 deletions

View File

@@ -256,7 +256,7 @@ msgid "Cancel allowed?"
msgstr ""
#. module: contract
#: code:addons/contract/models/contract_line.py:1054
#: code:addons/contract/models/contract_line.py:1056
#, python-format
msgid "Cancel not allowed for this line"
msgstr ""
@@ -305,7 +305,7 @@ msgid "Company"
msgstr ""
#. module: contract
#: code:addons/contract/models/contract.py:318
#: code:addons/contract/models/contract.py:321
#, python-format
msgid "Compose Email"
msgstr ""
@@ -398,7 +398,7 @@ msgid "Contract line '%s' start date can't be later than end date"
msgstr ""
#. module: contract
#: code:addons/contract/models/contract_line.py:1083
#: code:addons/contract/models/contract_line.py:1085
#, python-format
msgid "Contract line Un-canceled: %s<br/>- "
msgstr ""
@@ -416,13 +416,13 @@ msgid "Contract line and its successor overlapped"
msgstr ""
#. module: contract
#: code:addons/contract/models/contract_line.py:1062
#: code:addons/contract/models/contract_line.py:1064
#, python-format
msgid "Contract line canceled: %s<br/>- "
msgstr ""
#. module: contract
#: code:addons/contract/models/contract_line.py:854
#: code:addons/contract/models/contract_line.py:856
#, python-format
msgid "Contract line for <strong>{product}</strong>\n"
" stopped: <br/>\n"
@@ -431,7 +431,7 @@ msgid "Contract line for <strong>{product}</strong>\n"
msgstr ""
#. module: contract
#: code:addons/contract/models/contract_line.py:934
#: code:addons/contract/models/contract_line.py:936
#, python-format
msgid "Contract line for <strong>{product}</strong>\n"
" planned a successor: <br/>\n"
@@ -442,7 +442,7 @@ msgid "Contract line for <strong>{product}</strong>\n"
msgstr ""
#. module: contract
#: code:addons/contract/models/contract_line.py:1230
#: code:addons/contract/models/contract_line.py:1232
#, python-format
msgid "Contract line for <strong>{product}</strong>\n"
" renewed: <br/>\n"
@@ -453,7 +453,7 @@ msgid "Contract line for <strong>{product}</strong>\n"
msgstr ""
#. module: contract
#: code:addons/contract/models/contract_line.py:1042
#: code:addons/contract/models/contract_line.py:1044
#, python-format
msgid "Contract line for <strong>{product}</strong>\n"
" suspended: <br/>\n"
@@ -464,7 +464,7 @@ msgid "Contract line for <strong>{product}</strong>\n"
msgstr ""
#. module: contract
#: code:addons/contract/models/contract_line.py:1280
#: code:addons/contract/models/contract_line.py:1282
#, python-format
msgid "Contract line must be canceled before delete"
msgstr ""
@@ -986,7 +986,7 @@ msgid "Plan successor allowed?"
msgstr ""
#. module: contract
#: code:addons/contract/models/contract_line.py:917
#: code:addons/contract/models/contract_line.py:919
#, python-format
msgid "Plan successor not allowed for this line"
msgstr ""
@@ -997,7 +997,7 @@ msgid "Planned"
msgstr ""
#. module: contract
#: code:addons/contract/models/contract.py:273
#: code:addons/contract/models/contract.py:274
#, python-format
msgid "Please define a %s journal for the company '%s'."
msgstr ""
@@ -1208,7 +1208,7 @@ msgid "Stop allowed?"
msgstr ""
#. module: contract
#: code:addons/contract/models/contract_line.py:837
#: code:addons/contract/models/contract_line.py:839
#, python-format
msgid "Stop not allowed for this line"
msgstr ""
@@ -1219,7 +1219,7 @@ msgid "Stop/Plan successor allowed?"
msgstr ""
#. module: contract
#: code:addons/contract/models/contract_line.py:978
#: code:addons/contract/models/contract_line.py:980
#, python-format
msgid "Stop/Plan successor not allowed for this line"
msgstr ""
@@ -1311,7 +1311,7 @@ msgid "Un-cancel"
msgstr ""
#. module: contract
#: code:addons/contract/models/contract_line.py:1075
#: code:addons/contract/models/contract_line.py:1077
#, python-format
msgid "Un-cancel not allowed for this line"
msgstr ""
@@ -1402,7 +1402,7 @@ msgid "Year(s)"
msgstr ""
#. module: contract
#: code:addons/contract/models/contract_line.py:787
#: code:addons/contract/models/contract_line.py:789
#, python-format
msgid "You can't delay a contract line invoiced at least one time."
msgstr ""