[FIX] product_contract: Fix mock usage in tests

This commit is contained in:
Dave Lasley
2017-05-25 17:51:46 -07:00
committed by Ilyas
parent 9c73b48c0d
commit f422a4bc50
12 changed files with 350 additions and 36 deletions

View File

@@ -4,13 +4,14 @@
# #
# Translators: # Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017 # OCA Transbot <transbot@odoo-community.org>, 2017
# enjolras <yo@miguelrevilla.com>, 2018
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 10.0\n" "Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-27 02:40+0000\n" "POT-Creation-Date: 2018-02-10 03:15+0000\n"
"PO-Revision-Date: 2017-04-27 02:40+0000\n" "PO-Revision-Date: 2018-02-10 03:15+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n" "Last-Translator: enjolras <yo@miguelrevilla.com>, 2018\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" "Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@@ -27,25 +28,25 @@ msgstr "Contrato"
#: model:ir.model.fields,field_description:product_contract.field_product_product_contract_template_id #: model:ir.model.fields,field_description:product_contract.field_product_product_contract_template_id
#: model:ir.model.fields,field_description:product_contract.field_product_template_contract_template_id #: model:ir.model.fields,field_description:product_contract.field_product_template_contract_template_id
msgid "Contract Template" msgid "Contract Template"
msgstr "" msgstr "Plantilla de contrato"
#. module: product_contract #. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_product_product_is_contract #: model:ir.model.fields,field_description:product_contract.field_product_product_is_contract
#: model:ir.model.fields,field_description:product_contract.field_product_template_is_contract #: model:ir.model.fields,field_description:product_contract.field_product_template_is_contract
msgid "Is a contract" msgid "Is a contract"
msgstr "" msgstr "Es un contrato"
#. module: product_contract #. module: product_contract
#: model:ir.model,name:product_contract.model_product_template #: model:ir.model,name:product_contract.model_product_template
msgid "Product Template" msgid "Product Template"
msgstr "" msgstr "Plantilla de producto"
#. module: product_contract #. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order #: model:ir.model,name:product_contract.model_sale_order
msgid "Sales Order" msgid "Sales Order"
msgstr "" msgstr "Pedido de venta"
#. module: product_contract #. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order_line #: model:ir.model,name:product_contract.model_sale_order_line
msgid "Sales Order Line" msgid "Sales Order Line"
msgstr "" msgstr "Línea de pedido de venta"

View File

@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_contract
#
# Translators:
# Jarmo Kortetjärvi <jarmo.kortetjarvi@gmail.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-10 01:44+0000\n"
"PO-Revision-Date: 2018-03-10 01:44+0000\n"
"Last-Translator: Jarmo Kortetjärvi <jarmo.kortetjarvi@gmail.com>, 2018\n"
"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fi\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_sale_order_line_contract_id
msgid "Contract"
msgstr "Contract"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_product_product_contract_template_id
#: model:ir.model.fields,field_description:product_contract.field_product_template_contract_template_id
msgid "Contract Template"
msgstr "Sopimusmalli"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_product_product_is_contract
#: model:ir.model.fields,field_description:product_contract.field_product_template_is_contract
msgid "Is a contract"
msgstr ""
#. module: product_contract
#: model:ir.model,name:product_contract.model_product_template
msgid "Product Template"
msgstr ""
#. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order
msgid "Sales Order"
msgstr ""
#. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

View File

@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_contract
#
# Translators:
# Ashish Deshmukh <ashish.p.deshmukh@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-17 01:05+0000\n"
"PO-Revision-Date: 2017-08-17 01:05+0000\n"
"Last-Translator: Ashish Deshmukh <ashish.p.deshmukh@gmail.com>, 2017\n"
"Language-Team: Hindi (India) (https://www.transifex.com/oca/teams/23907/hi_IN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: hi_IN\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_sale_order_line_contract_id
msgid "Contract"
msgstr "अनुबंध"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_product_product_contract_template_id
#: model:ir.model.fields,field_description:product_contract.field_product_template_contract_template_id
msgid "Contract Template"
msgstr "अनुबंध टेम्पलेट"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_product_product_is_contract
#: model:ir.model.fields,field_description:product_contract.field_product_template_is_contract
msgid "Is a contract"
msgstr "एक अनुबंध है"
#. module: product_contract
#: model:ir.model,name:product_contract.model_product_template
msgid "Product Template"
msgstr "प्रोडक्ट टेम्पलेट"
#. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order
msgid "Sales Order"
msgstr "बिक्री आदेश"
#. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order_line
msgid "Sales Order Line"
msgstr "बिक्री आदेश पंक्ति"

View File

@@ -8,8 +8,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 10.0\n" "Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-27 02:40+0000\n" "POT-Creation-Date: 2018-02-10 03:15+0000\n"
"PO-Revision-Date: 2017-04-27 02:40+0000\n" "PO-Revision-Date: 2018-02-10 03:15+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2017\n" "Last-Translator: Bole <bole@dajmi5.com>, 2017\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" "Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@@ -27,25 +27,25 @@ msgstr "Ugovor"
#: model:ir.model.fields,field_description:product_contract.field_product_product_contract_template_id #: model:ir.model.fields,field_description:product_contract.field_product_product_contract_template_id
#: model:ir.model.fields,field_description:product_contract.field_product_template_contract_template_id #: model:ir.model.fields,field_description:product_contract.field_product_template_contract_template_id
msgid "Contract Template" msgid "Contract Template"
msgstr "" msgstr "Predložak ugovora"
#. module: product_contract #. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_product_product_is_contract #: model:ir.model.fields,field_description:product_contract.field_product_product_is_contract
#: model:ir.model.fields,field_description:product_contract.field_product_template_is_contract #: model:ir.model.fields,field_description:product_contract.field_product_template_is_contract
msgid "Is a contract" msgid "Is a contract"
msgstr "" msgstr "Je ugovor"
#. module: product_contract #. module: product_contract
#: model:ir.model,name:product_contract.model_product_template #: model:ir.model,name:product_contract.model_product_template
msgid "Product Template" msgid "Product Template"
msgstr "" msgstr "Predložak proizvoda"
#. module: product_contract #. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order #: model:ir.model,name:product_contract.model_sale_order
msgid "Sales Order" msgid "Sales Order"
msgstr "" msgstr "Ponuda"
#. module: product_contract #. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order_line #: model:ir.model,name:product_contract.model_sale_order_line
msgid "Sales Order Line" msgid "Sales Order Line"
msgstr "" msgstr "Stavka ponude"

View File

@@ -3,15 +3,15 @@
# * product_contract # * product_contract
# #
# Translators: # Translators:
# Bole <bole@dajmi5.com>, 2017
# OCA Transbot <transbot@odoo-community.org>, 2017 # OCA Transbot <transbot@odoo-community.org>, 2017
# Bole <bole@dajmi5.com>, 2017
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 10.0\n" "Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-27 02:40+0000\n" "POT-Creation-Date: 2017-06-17 01:39+0000\n"
"PO-Revision-Date: 2017-04-27 02:40+0000\n" "PO-Revision-Date: 2017-06-17 01:39+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n" "Last-Translator: Bole <bole@dajmi5.com>, 2017\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"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@@ -34,19 +34,19 @@ msgstr "Predložak ugovora"
#: model:ir.model.fields,field_description:product_contract.field_product_product_is_contract #: model:ir.model.fields,field_description:product_contract.field_product_product_is_contract
#: model:ir.model.fields,field_description:product_contract.field_product_template_is_contract #: model:ir.model.fields,field_description:product_contract.field_product_template_is_contract
msgid "Is a contract" msgid "Is a contract"
msgstr "" msgstr "Je ugovor"
#. module: product_contract #. module: product_contract
#: model:ir.model,name:product_contract.model_product_template #: model:ir.model,name:product_contract.model_product_template
msgid "Product Template" msgid "Product Template"
msgstr "" msgstr "Predložak proizvoda"
#. module: product_contract #. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order #: model:ir.model,name:product_contract.model_sale_order
msgid "Sales Order" msgid "Sales Order"
msgstr "" msgstr "Prodajni nalog"
#. module: product_contract #. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order_line #: model:ir.model,name:product_contract.model_sale_order_line
msgid "Sales Order Line" msgid "Sales Order Line"
msgstr "" msgstr "Stavka prodajnog naloga"

View File

@@ -4,13 +4,14 @@
# #
# Translators: # Translators:
# Erwin van der Ploeg <erwin@odooexperts.nl>, 2017 # Erwin van der Ploeg <erwin@odooexperts.nl>, 2017
# lfreeke <lfreeke@therp.nl>, 2018
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 10.0\n" "Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-27 02:40+0000\n" "POT-Creation-Date: 2018-01-06 03:17+0000\n"
"PO-Revision-Date: 2017-04-27 02:40+0000\n" "PO-Revision-Date: 2018-01-06 03:17+0000\n"
"Last-Translator: Erwin van der Ploeg <erwin@odooexperts.nl>, 2017\n" "Last-Translator: lfreeke <lfreeke@therp.nl>, 2018\n"
"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" "Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@@ -27,25 +28,25 @@ msgstr "Contract"
#: model:ir.model.fields,field_description:product_contract.field_product_product_contract_template_id #: model:ir.model.fields,field_description:product_contract.field_product_product_contract_template_id
#: model:ir.model.fields,field_description:product_contract.field_product_template_contract_template_id #: model:ir.model.fields,field_description:product_contract.field_product_template_contract_template_id
msgid "Contract Template" msgid "Contract Template"
msgstr "" msgstr "Contractsjabloon"
#. module: product_contract #. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_product_product_is_contract #: model:ir.model.fields,field_description:product_contract.field_product_product_is_contract
#: model:ir.model.fields,field_description:product_contract.field_product_template_is_contract #: model:ir.model.fields,field_description:product_contract.field_product_template_is_contract
msgid "Is a contract" msgid "Is a contract"
msgstr "" msgstr "Is een contract"
#. module: product_contract #. module: product_contract
#: model:ir.model,name:product_contract.model_product_template #: model:ir.model,name:product_contract.model_product_template
msgid "Product Template" msgid "Product Template"
msgstr "" msgstr "Productsjabloon"
#. module: product_contract #. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order #: model:ir.model,name:product_contract.model_sale_order
msgid "Sales Order" msgid "Sales Order"
msgstr "" msgstr "Verkooporder"
#. module: product_contract #. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order_line #: model:ir.model,name:product_contract.model_sale_order_line
msgid "Sales Order Line" msgid "Sales Order Line"
msgstr "" msgstr "Verkooporderregel"

View File

@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_contract
#
# Translators:
# Peter Hageman <hageman.p@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-09 01:10+0000\n"
"PO-Revision-Date: 2017-06-09 01:10+0000\n"
"Last-Translator: Peter Hageman <hageman.p@gmail.com>, 2017\n"
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: nl_NL\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_sale_order_line_contract_id
msgid "Contract"
msgstr "Contract"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_product_product_contract_template_id
#: model:ir.model.fields,field_description:product_contract.field_product_template_contract_template_id
msgid "Contract Template"
msgstr "Contractsjabloon"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_product_product_is_contract
#: model:ir.model.fields,field_description:product_contract.field_product_template_is_contract
msgid "Is a contract"
msgstr "Is een contract"
#. module: product_contract
#: model:ir.model,name:product_contract.model_product_template
msgid "Product Template"
msgstr "Productsjabloon"
#. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order
msgid "Sales Order"
msgstr "Verkooporder"
#. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order_line
msgid "Sales Order Line"
msgstr "Verkooporderregel"

View File

@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_contract
#
# Translators:
# Pedro Castro Silva <pedrocs@sossia.pt>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-15 01:24+0000\n"
"PO-Revision-Date: 2017-07-15 01:24+0000\n"
"Last-Translator: Pedro Castro Silva <pedrocs@sossia.pt>, 2017\n"
"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: pt\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_sale_order_line_contract_id
msgid "Contract"
msgstr "Contrato"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_product_product_contract_template_id
#: model:ir.model.fields,field_description:product_contract.field_product_template_contract_template_id
msgid "Contract Template"
msgstr "Modelo de Contrato"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_product_product_is_contract
#: model:ir.model.fields,field_description:product_contract.field_product_template_is_contract
msgid "Is a contract"
msgstr "É um Contrato"
#. module: product_contract
#: model:ir.model,name:product_contract.model_product_template
msgid "Product Template"
msgstr "Modelo de Produto"
#. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order
msgid "Sales Order"
msgstr "Encomenda de Venda"
#. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order_line
msgid "Sales Order Line"
msgstr "Linha de Encomenda de Venda"

View File

@@ -3,14 +3,15 @@
# * product_contract # * product_contract
# #
# Translators: # Translators:
# Albert Vonpupp <vonpupp@gmail.com>, 2017 # OCA Transbot <transbot@odoo-community.org>, 2017
# falexandresilva <falexandresilva@gmail.com>, 2017
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 10.0\n" "Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-27 02:40+0000\n" "POT-Creation-Date: 2017-06-13 02:40+0000\n"
"PO-Revision-Date: 2017-04-27 02:40+0000\n" "PO-Revision-Date: 2017-06-13 02:40+0000\n"
"Last-Translator: Albert Vonpupp <vonpupp@gmail.com>, 2017\n" "Last-Translator: falexandresilva <falexandresilva@gmail.com>, 2017\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n" "Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@@ -43,7 +44,7 @@ msgstr ""
#. module: product_contract #. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order #: model:ir.model,name:product_contract.model_sale_order
msgid "Sales Order" msgid "Sales Order"
msgstr "" msgstr "Pedido de compras"
#. module: product_contract #. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order_line #: model:ir.model,name:product_contract.model_sale_order_line

View File

@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_contract
#
# Translators:
# nek, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-17 03:26+0000\n"
"PO-Revision-Date: 2018-03-17 03:26+0000\n"
"Last-Translator: nek, 2018\n"
"Language-Team: Russian (https://www.transifex.com/oca/teams/23907/ru/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: ru\n"
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_sale_order_line_contract_id
msgid "Contract"
msgstr "Договор"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_product_product_contract_template_id
#: model:ir.model.fields,field_description:product_contract.field_product_template_contract_template_id
msgid "Contract Template"
msgstr "Шаблон Договора"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_product_product_is_contract
#: model:ir.model.fields,field_description:product_contract.field_product_template_is_contract
msgid "Is a contract"
msgstr "Это Договор"
#. module: product_contract
#: model:ir.model,name:product_contract.model_product_template
msgid "Product Template"
msgstr "Шаблон Продукта"
#. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order
msgid "Sales Order"
msgstr ""
#. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

View File

@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_contract
#
# Translators:
# Ediz Duman <neps1192@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-13 09:15+0000\n"
"PO-Revision-Date: 2017-05-13 09:15+0000\n"
"Last-Translator: Ediz Duman <neps1192@gmail.com>, 2017\n"
"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: tr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_sale_order_line_contract_id
msgid "Contract"
msgstr "Sözleşme"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_product_product_contract_template_id
#: model:ir.model.fields,field_description:product_contract.field_product_template_contract_template_id
msgid "Contract Template"
msgstr "Sözleşme Şablonu"
#. module: product_contract
#: model:ir.model.fields,field_description:product_contract.field_product_product_is_contract
#: model:ir.model.fields,field_description:product_contract.field_product_template_is_contract
msgid "Is a contract"
msgstr ""
#. module: product_contract
#: model:ir.model,name:product_contract.model_product_template
msgid "Product Template"
msgstr ""
#. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order
msgid "Sales Order"
msgstr ""
#. module: product_contract
#: model:ir.model,name:product_contract.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

View File

@@ -20,6 +20,11 @@ class TestSaleOrder(TransactionCase):
self.product.product_tmpl_id.is_contract = True self.product.product_tmpl_id.is_contract = True
self.product.product_tmpl_id.contract_template_id = self.contract.id self.product.product_tmpl_id.contract_template_id = self.contract.id
def tearDown(self):
self.env['account.analytic.account']._revert_method(
'create',
)
def test_action_done(self): def test_action_done(self):
""" It should create a contract when the sale for a contract is set """ It should create a contract when the sale for a contract is set
to done for the first time """ to done for the first time """