mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[MIG] contract_variable_quantity: Migration to 14.0
[UPD] Update contract_variable_quantity.pot [UPD] README.rst
This commit is contained in:
@@ -14,13 +14,13 @@ Variable quantity in contract recurrent invoicing
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/contract/tree/13.0/contract_variable_quantity
|
||||
:target: https://github.com/OCA/contract/tree/14.0/contract_variable_quantity
|
||||
:alt: OCA/contract
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/contract-13-0/contract-13-0-contract_variable_quantity
|
||||
:target: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract_variable_quantity
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||
:target: https://runbot.odoo-community.org/runbot/110/13.0
|
||||
:target: https://runbot.odoo-community.org/runbot/110/14.0
|
||||
:alt: Try me on Runbot
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
@@ -49,7 +49,7 @@ Configuration
|
||||
* *contract*: Contract whose line belongs to.
|
||||
* *invoice*: Invoice (header) being created.
|
||||
|
||||
.. figure:: https://raw.githubusercontent.com/OCA/contract/13.0/contract_variable_quantity/images/formula_form.png
|
||||
.. figure:: https://raw.githubusercontent.com/OCA/contract/14.0/contract_variable_quantity/images/formula_form.png
|
||||
:alt: Formula form
|
||||
:width: 600 px
|
||||
|
||||
@@ -70,7 +70,7 @@ Bug Tracker
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/contract/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/contract/issues/new?body=module:%20contract_variable_quantity%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`feedback <https://github.com/OCA/contract/issues/new?body=module:%20contract_variable_quantity%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
@@ -107,6 +107,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.
|
||||
|
||||
This module is part of the `OCA/contract <https://github.com/OCA/contract/tree/13.0/contract_variable_quantity>`_ project on GitHub.
|
||||
This module is part of the `OCA/contract <https://github.com/OCA/contract/tree/14.0/contract_variable_quantity>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
|
||||
{
|
||||
"name": "Variable quantity in contract recurrent invoicing",
|
||||
"version": "13.0.1.2.0",
|
||||
"version": "14.0.1.0.0",
|
||||
"category": "Contract Management",
|
||||
"license": "AGPL-3",
|
||||
"author": "Tecnativa," "Odoo Community Association (OCA)",
|
||||
"author": "Tecnativa, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/contract",
|
||||
"depends": ["contract"],
|
||||
"data": [
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 13.0\n"
|
||||
"Project-Id-Version: Odoo Server 14.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
@@ -103,6 +103,9 @@ msgid "Created on"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_contract_abstract_contract_line__display_name
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_contract_contract__display_name
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_contract_line__display_name
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_contract_line_qty_formula__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
@@ -139,6 +142,9 @@ msgid "Help with Python expressions."
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_contract_abstract_contract_line__id
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_contract_contract__id
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_contract_line__id
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_contract_line_qty_formula__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
@@ -149,6 +155,9 @@ 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_abstract_contract_line____last_update
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_contract_contract____last_update
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_contract_line____last_update
|
||||
#: model:ir.model.fields,field_description:contract_variable_quantity.field_contract_line_qty_formula____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
@@ -367,7 +367,7 @@ ul.auto-toc {
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/contract/tree/13.0/contract_variable_quantity"><img alt="OCA/contract" src="https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/contract-13-0/contract-13-0-contract_variable_quantity"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/110/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/contract/tree/14.0/contract_variable_quantity"><img alt="OCA/contract" src="https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract_variable_quantity"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/110/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p>With this module, you will be able to define in recurring contracts some
|
||||
lines with variable quantity according to a provided formula.</p>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
@@ -403,7 +403,7 @@ float/integer value of the quantity to invoice in the variable ‘result’.</p>
|
||||
</li>
|
||||
</ol>
|
||||
<div class="figure">
|
||||
<img alt="Formula form" src="https://raw.githubusercontent.com/OCA/contract/13.0/contract_variable_quantity/images/formula_form.png" style="width: 600px;" />
|
||||
<img alt="Formula form" src="https://raw.githubusercontent.com/OCA/contract/14.0/contract_variable_quantity/images/formula_form.png" style="width: 600px;" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="usage">
|
||||
@@ -422,7 +422,7 @@ float/integer value of the quantity to invoice in the variable ‘result’.</p>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/contract/issues">GitHub Issues</a>.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
<a class="reference external" href="https://github.com/OCA/contract/issues/new?body=module:%20contract_variable_quantity%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/contract/issues/new?body=module:%20contract_variable_quantity%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
@@ -458,7 +458,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
||||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/contract/tree/13.0/contract_variable_quantity">OCA/contract</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/contract/tree/14.0/contract_variable_quantity">OCA/contract</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,15 +3,16 @@
|
||||
# Copyright 2018 ACSONE SA/NV
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
import odoo.tests
|
||||
from odoo import exceptions
|
||||
from odoo.tests.common import SavepointCase
|
||||
|
||||
|
||||
@odoo.tests.at_install(False)
|
||||
@odoo.tests.post_install(True)
|
||||
class TestContractVariableQuantity(odoo.tests.HttpCase):
|
||||
class TestContractVariableQuantity(SavepointCase):
|
||||
at_install = False
|
||||
post_install = True
|
||||
|
||||
def setUp(self):
|
||||
super(TestContractVariableQuantity, self).setUp()
|
||||
super().setUp()
|
||||
self.partner = self.env["res.partner"].create({"name": "Test partner"})
|
||||
self.product = self.env["product.product"].create({"name": "Test product"})
|
||||
self.contract = self.env["contract.contract"].create(
|
||||
|
||||
Reference in New Issue
Block a user