Skip to content
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
166 changes: 166 additions & 0 deletions base_tier_validation_correction/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===============================
Base Tier Validation Correction
===============================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/license-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_tier_validation_correction
: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_tier_validation_correction
: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 a new operation to correct the information in
tier.review for any document under tier validation.

For example, a document started validation, a tier review is assigned to
Mr. Smith.

However, since Mr. Smith has urgent business oversea for a few days, all
document need to get approved by Mr. John as person in charge.

This module allow user with Tier Review Correction role to change the
reviewer to Mr. John.

Note: Currently, only correction type available is to reassign the
reviewer, but it is possible to add in the future.

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

Configuration
=============

Person that can use the tier review correction, must has access right to
group *Tier Review Correction*

Usage
=====

To create/edit Tier Review Correction

- Login as user with Tier Review Correction role
- Go to menu Settings > Technical > Tier Validation > Tier Review
Correction
- Create a new tier correction, by selecting,

- Correction Type, in this case, Reassign Reviewer(s)
- Document Model, i.e., Purchase order

- Find documents with pending reviews by,

- Reviewer(s)
- Name Search

- Then set default value to change, in this case,

- New Reviewer(s)

- Click button "Prepare", if any document matched, it should list in
Correction Detail table.
- For each correction line, user can still change the affected tier
reviews, and new reviewers.
- Click button "Make Correction" to finalize the operation.
- As an option, click on "Revert Back" to set back to original status.

- For case Reassign Reviewer(s), system to get the original reviewers
from tier definition as set it back.

Quick access, from a working document, to create/view Tier Review
Correction

- As user with Tier Review Correction role
- On any document, i.e., Purchase Order, with validation already
started.
- On the yellow banner (pending state), click on "Change Reviewer" link
on its right side.

- If this document has no Correction yet, it will create new.
- If the document already has some Corrections, it will show those
corrections.

To run the Tier Review Correction by scheduled job

- As user with Tier Review Correction role
- On any Tier Review Correction, open tab "Scheduled Action"
- Setup the datetime to Scheduled Correct and Scheduled Revert. By
default, scheduled action "Tier Correction Scheduler" will run every 1
hour.

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_tier_validation_correction%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
-------

* Ecosoft

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

- Kitti U. <kittiu@ecosoft.co.th>
- Chau Le <chaulb@trobz.com>

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.

.. |maintainer-kittiu| image:: https://github.com/kittiu.png?size=40px
:target: https://github.com/kittiu
:alt: kittiu

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-kittiu|

This module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/18.0/base_tier_validation_correction>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions base_tier_validation_correction/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import models
from . import wizards
25 changes: 25 additions & 0 deletions base_tier_validation_correction/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Base Tier Validation Correction",
"summary": "Correct tier.review data after it has been created.",
"version": "18.0.1.0.1",
"category": "Tools",
"website": "https://github.com/OCA/server-ux",
"author": "Ecosoft,Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["base_tier_validation"],
"data": [
"security/correction_groups.xml",
"security/ir.model.access.csv",
"data/mail_data.xml",
"data/cron_data.xml",
"templates/tier_validation_templates.xml",
"wizards/affected_tier_reviews.xml",
"views/tier_correction_view.xml",
],
"development_status": "Alpha",
"maintainers": ["kittiu"],
"application": False,
"installable": True,
}
11 changes: 11 additions & 0 deletions base_tier_validation_correction/data/cron_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="tier_correction_scheduler" model="ir.cron">
<field name="name">Tier Correction Scheduler</field>
<field name="interval_number">1</field>
<field name="interval_type">hours</field>
<field name="model_id" ref="model_tier_correction" />
<field name="code">model._tier_correction_auto_run()</field>
<field name="state">code</field>
</record>
</odoo>
13 changes: 13 additions & 0 deletions base_tier_validation_correction/data/mail_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record
id="mt_tier_validation_correction"
model="mail.message.subtype"
forcecreate="1"
>
<field name="name">Tier Validation Correction</field>
<field name="default" eval="True" />
<field name="internal" eval="True" />
<field name="hidden" eval="True" />
</record>
</odoo>
Loading
Loading