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] base substate #994

Open
wants to merge 18 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
95 changes: 95 additions & 0 deletions base_substate/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
==============
Base Sub State
==============

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

.. |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%2Fserver--ux-lightgray.png?logo=github
:target: https://github.com/OCA/server-ux/tree/18.0/base_substate
:alt: OCA/server-ux
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-ux-18-0/server-ux-18-0-base_substate
: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/server-ux&target_branch=18.0
:alt: Try me on Runboat

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

This module provide abstract models to manage customizable substates to
be applied on different models (sale order, purchase, ...).

example:
--------

- for the quotation state of a sale order we can define 3 substates "In
negotiation", "Won" and "Lost".
- We can also send mail when the substate is reached.

It is not useful by itself. You can see an example of implementation in
the 'purchase_substate' module. (purchase-workflow repository).

**Table of contents**

.. contents::
:local:

Usage
=====

1. You must install an application module depending this one (for
example purchase_substate)

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/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/server-ux/issues/new?body=module:%20base_substate%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
-------

* Akretion

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

- Mourad EL HADJ MIMOUNE <mourad.elhadj.mimoune@akretion.com>
- Kitti U. <kittiu@ecosoft.co.th>
- Alexei Rivera <arivera@archeti.com> (migration to 15.0)

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/server-ux <https://github.com/OCA/server-ux/tree/18.0/base_substate>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions base_substate/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
20 changes: 20 additions & 0 deletions base_substate/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2020 Akretion (<http://www.akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Base Sub State",
"version": "18.0.1.0.0",
"category": "Tools",
"author": "Akretion, " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/server-ux",
"license": "AGPL-3",
"depends": ["base", "mail"],
"data": [
"security/base_substate_security.xml",
"security/ir.model.access.csv",
"views/base_substate_type_views.xml",
"views/base_substate_value_views.xml",
"views/base_substate_views.xml",
],
"installable": True,
}
221 changes: 221 additions & 0 deletions base_substate/i18n/base_substate.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_substate
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: base_substate
#: model:ir.model.fields,field_description:base_substate.field_base_substate__active
msgid "Active"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,field_description:base_substate.field_base_substate__model
#: model:ir.model.fields,field_description:base_substate.field_base_substate_type__model
#: model:ir.model.fields,field_description:base_substate.field_target_state_value__model
msgid "Apply on"
msgstr ""

#. module: base_substate
#: model_terms:ir.ui.view,arch_db:base_substate.base_substate_view_form
msgid "Archived"
msgstr ""

#. module: base_substate
#: model:ir.actions.act_window,name:base_substate.act_open_base_substate_view
#: model:ir.model,name:base_substate.model_base_substate
#: model:ir.ui.menu,name:base_substate.menu_base_substate
#: model_terms:ir.ui.view,arch_db:base_substate.base_substate_view_form
#: model_terms:ir.ui.view,arch_db:base_substate.base_substate_view_search
msgid "Base Substate"
msgstr ""

#. module: base_substate
#: model:ir.model,name:base_substate.model_base_substate_type
msgid "Base Substate Type"
msgstr ""

#. module: base_substate
#: model:ir.model,name:base_substate.model_base_substate_mixin
msgid "BaseSubstate Mixin"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,field_description:base_substate.field_base_substate__create_uid
#: model:ir.model.fields,field_description:base_substate.field_base_substate_type__create_uid
#: model:ir.model.fields,field_description:base_substate.field_target_state_value__create_uid
msgid "Created by"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,field_description:base_substate.field_base_substate__create_date
#: model:ir.model.fields,field_description:base_substate.field_base_substate_type__create_date
#: model:ir.model.fields,field_description:base_substate.field_target_state_value__create_date
msgid "Created on"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,field_description:base_substate.field_base_substate__description
msgid "Description"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,field_description:base_substate.field_base_substate__display_name
#: model:ir.model.fields,field_description:base_substate.field_base_substate_type__display_name
#: model:ir.model.fields,field_description:base_substate.field_target_state_value__display_name
msgid "Display Name"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,field_description:base_substate.field_base_substate__mail_template_id
msgid "Email Template"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,help:base_substate.field_base_substate__sequence
msgid "Gives the sequence order when applying the default substate"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,field_description:base_substate.field_base_substate__id
#: model:ir.model.fields,field_description:base_substate.field_base_substate_type__id
#: model:ir.model.fields,field_description:base_substate.field_target_state_value__id
msgid "ID"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,help:base_substate.field_base_substate__mail_template_id
msgid ""
"If set, an email will be sent to the partner when the object reaches this "
"substate."
msgstr ""

#. module: base_substate
#: model:ir.model.fields,field_description:base_substate.field_base_substate__write_uid
#: model:ir.model.fields,field_description:base_substate.field_base_substate_type__write_uid
#: model:ir.model.fields,field_description:base_substate.field_target_state_value__write_uid
msgid "Last Updated by"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,field_description:base_substate.field_base_substate__write_date
#: model:ir.model.fields,field_description:base_substate.field_base_substate_type__write_date
#: model:ir.model.fields,field_description:base_substate.field_target_state_value__write_date
msgid "Last Updated on"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,help:base_substate.field_base_substate__model
#: model:ir.model.fields,help:base_substate.field_target_state_value__model
msgid "Model for technical use"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,field_description:base_substate.field_base_substate_type__name
msgid "Name"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,field_description:base_substate.field_base_substate__sequence
msgid "Sequence"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,field_description:base_substate.field_base_substate_mixin__substate_id
msgid "Sub State"
msgstr ""

#. module: base_substate
#: model:ir.ui.menu,name:base_substate.menu_substate_config
msgid "Sub State Configuration"
msgstr ""

#. module: base_substate
#: model:ir.actions.act_window,name:base_substate.act_open_base_substate_type_view
#: model:ir.ui.menu,name:base_substate.menu_base_substate_type
#: model_terms:ir.ui.view,arch_db:base_substate.base_substate_type_view_form
#: model_terms:ir.ui.view,arch_db:base_substate.base_substate_type_view_search
msgid "Sub State Type"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,field_description:base_substate.field_base_substate__name
msgid "Substate Name"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,field_description:base_substate.field_target_state_value__base_substate_type_id
msgid "Substate Type"
msgstr ""

#. module: base_substate
#: model:res.groups,name:base_substate.group_substate_manager
msgid "Substate manager"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,field_description:base_substate.field_base_substate_type__target_state_field
msgid "Target State Field"
msgstr ""

#. module: base_substate
#: model:ir.actions.act_window,name:base_substate.act_open_target_state_value_view
#: model:ir.model,name:base_substate.model_target_state_value
#: model:ir.model.fields,field_description:base_substate.field_base_substate__target_state_value_id
#: model:ir.model.fields,field_description:base_substate.field_target_state_value__target_state_value
#: model:ir.ui.menu,name:base_substate.menu_target_state_value
#: model_terms:ir.ui.view,arch_db:base_substate.target_state_value_view_form
#: model_terms:ir.ui.view,arch_db:base_substate.target_state_value_view_search
msgid "Target State Value"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,field_description:base_substate.field_target_state_value__name
msgid "Target state Name"
msgstr ""

#. module: base_substate
#: model:ir.model.fields,help:base_substate.field_target_state_value__name
msgid ""
"Target state translateble name.\n"
"Ex: for sale order \"Quotation\", \"Sale order\", \"Locked\"..."
msgstr ""

#. module: base_substate
#: model:ir.model.fields,help:base_substate.field_base_substate_type__target_state_field
msgid ""
"Technical target state field name. Ex for sale order \"state\" for other "
"\"status\" ... "
msgstr ""

#. module: base_substate
#: model:ir.model.fields,help:base_substate.field_target_state_value__target_state_value
msgid ""
"Technical target state value.\n"
"Ex: for sale order \"draft\", \"sale\", \"done\", ..."
msgstr ""

#. module: base_substate
#. odoo-python
#: code:addons/base_substate/models/base_substate_mixin.py:0
#, python-format
msgid ""
"The substate %(name)s is not defined for the state %(state)s but for "
"%(target_state)s "
msgstr ""

#. module: base_substate
#. odoo-python
#: code:addons/base_substate/models/base_substate_mixin.py:0
#, python-format
msgid "This substate is not define for this object but for %s"
msgstr ""
Loading
Loading