Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0] [MIG] sale_order_revision: Migration to 18.0 #3521

Open
wants to merge 32 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
86a51f4
[ADD] sale_order_revision, modeled after purchase_order_revision OCA …
rvalyi Jan 22, 2014
4ea3d34
[FIX+IMP] sale_order_revision: Several things:
gurneyalex Apr 1, 2015
f25c85c
Added german po file
Jun 30, 2015
ff244b5
Slovene translations added
sysadminmatmoz Aug 20, 2015
1678d69
[MIG] sale_order_revision: Migration to v10
JayVora-SerpentCS Feb 15, 2017
796f16b
[FIX] sale_order_revision: 2 things:
grindtildeath Apr 3, 2017
9607380
[FIX] sale_order_revision: wrong keyword (#554)
gurneyalex Oct 31, 2017
10f7316
[MIG] sale_order_revision: Migration to 11.0
devang-dreambits Aug 13, 2018
91d7dae
Hide Revisions-tab entirely if there is not any revisions
simonitfi Aug 22, 2018
53fd5bf
[MIG] sale_order_revision: Migration to 12.0
rven May 6, 2019
b95bbb6
Translated using Weblate (German)
marylla Jul 15, 2019
7b9eacc
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
4351a73
Translated using Weblate (Spanish)
Roodin Dec 8, 2019
cf033d9
[MIG] sale_order_revision: Migration to 13.0
Dec 18, 2019
eb2fd78
[14.0][MIG] sale_order_revision
kittiu Dec 10, 2020
027ebe3
[IMP] sale_order_revision: Tests are added to check that the addon wo…
victoralmau Feb 3, 2022
0002f4d
[IMP] sale_order_revision: Set state=cancel in _prepare_revision_data…
victoralmau Feb 14, 2022
79ddccf
[MIG] sale_order_revision: Migration to 15.0
Feb 17, 2023
26caab3
[MIG] sale_order_revision: Migration to 16.0
Feb 17, 2023
c6717c2
[FIX] Correct position attribute in form
Mar 30, 2023
67c9896
[fix] unit tests adapted to base_revision
Jul 20, 2023
e9bd7e8
Added translation using Weblate (Portuguese (Brazil))
adrianojprado Sep 2, 2023
89a1e2e
Added translation using Weblate (Spanish)
Ivorra78 Sep 15, 2023
2fcd21f
Added translation using Weblate (Italian)
mymage Dec 4, 2023
9954bac
Translated using Weblate (Italian)
francesco-ooops Mar 11, 2024
6a4eec1
Translated using Weblate (Italian)
eLBati Mar 14, 2024
2085eea
[IMP] sale_order_revision: pre-commit stuff
siemenv Mar 29, 2024
04eb0ff
[MIG] sale_order_revision: Migration to 17.0
siemenv Mar 29, 2024
b31d9b8
[UPD] Update sale_order_revision.pot
Jun 3, 2024
2efbbbb
[BOT] post-merge updates
OCA-git-bot Jun 3, 2024
0855d1a
[MIG] sale_order_revision: Migration to 18.0
bizzappdev Jan 1, 2025
3ddde3b
[DON'T MERGE] test-requirements.txt
bizzappdev Jan 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 106 additions & 0 deletions sale_order_revision/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
====================
Sale order revisions
====================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:6b51e36bae3e8bf7f72989b8084d6011a7b933418a29592bf13a9e3134cee776
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/sale-workflow/tree/18.0/sale_order_revision
:alt: OCA/sale-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_order_revision
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

On cancelled orders, you can click on the "New copy of Quotation"
button. This will create a new revision of the quotation, with the same
base number and a '-revno' suffix appended. A message is added in the
chatter saying that a new revision was created.

In the form view, a new tab is added that lists the previous revisions,
with the date they were made obsolete and the user who performed the
action.

The old revisions of a sale order are flagged as inactive, so they don't
clutter up searches.

**Table of contents**

.. contents::
:local:

Installation
============

You need to install sale_management module for accessing the needed
menus.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_revision%0Aversion:%2018.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.

Credits
=======

Authors
-------

* Agile Business Group
* Dreambits
* Camptocamp
* Akretion
* Serpent Consulting Services Pvt. Ltd.
* Ecosoft

Contributors
------------

- Devang Pipaliya <[email protected]>
- Lorenzo Battistini <[email protected]>
- Raphael Valyi <[email protected]>
- Alexandre Fayolle <[email protected]>
- Serpent Consulting Services Pvt. Ltd. <[email protected]>
- Akim Juillerat <[email protected]>
- Raf Ven <[email protected]>
- Jeroen Evens <[email protected]>
- Kitti U. <[email protected]>
- Denis Leemann <[email protected]>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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/sale-workflow <https://github.com/OCA/sale-workflow/tree/18.0/sale_order_revision>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
10 changes: 10 additions & 0 deletions sale_order_revision/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models


def populate_unrevisioned_name(env):
env.cr.execute(
"UPDATE sale_order "
"SET unrevisioned_name = name "
"WHERE unrevisioned_name is NULL"
)
25 changes: 25 additions & 0 deletions sale_order_revision/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2013 Agile Business Group sagl (<http://www.agilebg.com>)
# Copyright 2016 Serpent Consulting Services Pvt. Ltd.
# Copyright 2018 Dreambits Technologies Pvt. Ltd. (<http://dreambits.in>)
# Copyright 2020 Ecosoft Co., Ltd. (<http://ecosoft.co.th>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Sale order revisions",
"summary": "Keep track of revised quotations",
"version": "18.0.1.0.0",
"category": "Sale Management",
"author": "Agile Business Group,"
"Dreambits,"
"Camptocamp,"
"Akretion,"
"Serpent Consulting Services Pvt. Ltd.,"
"Ecosoft,"
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/sale-workflow",
"license": "AGPL-3",
"depends": ["base_revision", "sale_management"],
"data": ["view/sale_order.xml"],
"installable": True,
"post_init_hook": "populate_unrevisioned_name",
}
72 changes: 72 additions & 0 deletions sale_order_revision/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_revision
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-09-20 04:33+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__active
msgid "Active"
msgstr "Activo"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__current_revision_id
msgid "Current revision"
msgstr "Revisión actual"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__has_old_revisions
msgid "Has Old Revisions"
msgstr "Tiene revisiones antiguas"

#. module: sale_order_revision
#: model_terms:ir.ui.view,arch_db:sale_order_revision.view_order_form
msgid "New Revision of Quotation"
msgstr "Nueva revisión de cotización"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__old_revision_ids
msgid "Old revisions"
msgstr "Revisiones antiguas"

#. module: sale_order_revision
#: model:ir.model.constraint,message:sale_order_revision.constraint_sale_order_revision_unique
msgid "Order Reference and revision must be unique per Company."
msgstr "La referencia del pedido y la revisión deben ser únicas por compañía."

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__unrevisioned_name
msgid "Original Reference"
msgstr "Referencia original"

#. module: sale_order_revision
#: model_terms:ir.ui.view,arch_db:sale_order_revision.view_order_form
msgid "Prev. revisions"
msgstr "Revisiones previas"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__revision_count
msgid "Previous versions count"
msgstr "Recuento de versiones anteriores"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__revision_number
msgid "Revision"
msgstr "Revisión"

#. module: sale_order_revision
#: model:ir.model,name:sale_order_revision.model_sale_order
msgid "Sales Order"
msgstr "Órdenes de Venta"
72 changes: 72 additions & 0 deletions sale_order_revision/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_revision
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-13 12:34+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__active
msgid "Active"
msgstr "Attivo"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__current_revision_id
msgid "Current revision"
msgstr "Revisione corrente"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__has_old_revisions
msgid "Has Old Revisions"
msgstr "Ha revisioni precedenti"

#. module: sale_order_revision
#: model_terms:ir.ui.view,arch_db:sale_order_revision.view_order_form
msgid "New Revision of Quotation"
msgstr "Nuova rersione preventivo"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__old_revision_ids
msgid "Old revisions"
msgstr "Revisioni precedenti"

#. module: sale_order_revision
#: model:ir.model.constraint,message:sale_order_revision.constraint_sale_order_revision_unique
msgid "Order Reference and revision must be unique per Company."
msgstr "Riferimento d'ordine e revisione devono essere unici per azienda."

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__unrevisioned_name
msgid "Original Reference"
msgstr "Riferimento originale"

#. module: sale_order_revision
#: model_terms:ir.ui.view,arch_db:sale_order_revision.view_order_form
msgid "Prev. revisions"
msgstr "Revisioni precedenti"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__revision_count
msgid "Previous versions count"
msgstr "Conteggio rersioni precedenti"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__revision_number
msgid "Revision"
msgstr "Revisione"

#. module: sale_order_revision
#: model:ir.model,name:sale_order_revision.model_sale_order
msgid "Sales Order"
msgstr "Ordine di vendita"
72 changes: 72 additions & 0 deletions sale_order_revision/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_revision
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-09-02 18:13+0000\n"
"Last-Translator: Adriano Prado <[email protected]>\n"
"Language-Team: none\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__active
msgid "Active"
msgstr "Ativo"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__current_revision_id
msgid "Current revision"
msgstr "Versão Corrente"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__has_old_revisions
msgid "Has Old Revisions"
msgstr "Possui Versões Antigas"

#. module: sale_order_revision
#: model_terms:ir.ui.view,arch_db:sale_order_revision.view_order_form
msgid "New Revision of Quotation"
msgstr "Nova Versão Cotação"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__old_revision_ids
msgid "Old revisions"
msgstr "Versões Antigas"

#. module: sale_order_revision
#: model:ir.model.constraint,message:sale_order_revision.constraint_sale_order_revision_unique
msgid "Order Reference and revision must be unique per Company."
msgstr "A referência e revisão do pedido devem ser exclusivas por empresa."

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__unrevisioned_name
msgid "Original Reference"
msgstr "Referencia Original"

#. module: sale_order_revision
#: model_terms:ir.ui.view,arch_db:sale_order_revision.view_order_form
msgid "Prev. revisions"
msgstr "Versões Prévias"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__revision_count
msgid "Previous versions count"
msgstr "N° Versões Prévias"

#. module: sale_order_revision
#: model:ir.model.fields,field_description:sale_order_revision.field_sale_order__revision_number
msgid "Revision"
msgstr "Versão"

#. module: sale_order_revision
#: model:ir.model,name:sale_order_revision.model_sale_order
msgid "Sales Order"
msgstr "Pedidos de Venda"
Loading
Loading