Contributors mailing list archives

contributors@odoo-community.org

Re: Workflow Management

by
Vauxoo, Nhomar Hernández
- 16/01/2019 06:22:44


On Wed, Jan 16, 2019 at 12:17 AM Simone Orsi <simahawk@gmail.com> wrote:
Ciao Eric,

if you need complex handling of permissions, transitions, etc based on records' states I recommend you have a look at https://github.com/acsone/scobidoo.


It is pretty! conceptually.

Basically it brings the power of statecharts into Odoo.

I did a small PoC for one of my projects and looked really good.

AFAIK Acsone is using it in prod since quite some time for some customers.

I bet Stéphane can provide more insights for sure ;)

On Wed, Jan 16, 2019 at 3:56 AM Nhomar Hernández <nhomar@vauxoo.com> wrote:
Ok.

I solve that with pure custom dev and server actions (if sass)

The mindset is:

  1. Now you can get the old_values from the env from a server action.
  2. Combine that with the method has_group(xml_id).
  3. log(message) if no blocking method.
  4. raise Warning() if blocking.
  5. A little of creativity!

Gualá ;-)

I do several server actions because generally they will be evolving in the mean while your workflow improves (but try to think on them very well to avoid overload of pointless restrictions the system).

To add elements to selection you need access to code (because add_selection is not available, but the WFK can be generally related to other fields than state itself).

image.png
in studio).

When it evolves and is stable (or when it is complicated enough) I use the same technique but copying the first version of the code to a module and following the OCA SQA that you know.

On Tue, Jan 15, 2019 at 8:22 PM Eric Caudal <eric.caudal@elico-corp.com> wrote:

Thanks Nhomar for the feedback.

Actually I am not so much interested in the graphical interface but more in the possibility to add for any model some stages with ACL (could be something similar to the stages in CRM with ACL for next and previous stages).

I do not know in advance the full stages and ACL and I need it to be configurable in the interface.




Elico
                Corp
Eric Caudal [Founder and CEO] - Shanghai Elico Limited
Skype: elico.corp - Phone: + 86 186 2136 1670 (Cell) // + 86 21 6211 8017/27/37 (Office)
More information: https://www.elico-corp.com

Odoo Gold Partner // Best Odoo Partner APAC 2014, 2016 and 2018!

On 2019-01-16 10:07 a.m., Nhomar Hernández wrote:
I use.

Draw.io and program orthogonal in Odoo.

Why? even if I was one of the biggest defenders of the WFK engine, the real real true, is that it is the same effort have it graphically than orthogonal.

At the end neither Odoo or the WKF was complete ever.

Regards.

On Tue, Jan 15, 2019 at 8:02 PM Eric Caudal <eric.caudal@elico-corp.com> wrote:

Hi,

Has somebody made any development in v12 to replace the workflow management available in v10? Migration of previous functions (I am not even sure this is realistic) or new simpler concept in order to add a workflow with stages and roles to any object in Odoo

Thanks


Elico
 Corp
Eric Caudal [Founder and CEO] - Shanghai Elico Limited
Skype: elico.corp - Phone: + 86 186 2136 1670 (Cell) // + 86 21 6211 8017/27/37 (Office)
More information: https://www.elico-corp.com

Odoo Gold Partner // Best Odoo Partner APAC 2014, 2016 and 2018!

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe



--

--
Nhomar Hernandez
CEO Vauxoo.
Twitter: @nhomar
Odoo Gold Partner
Skype: nhomar00 (Envia mail previo no lo superviso siempre).
Móvil Venezuela:
+58 4144110269 (Telegram)
Móvil México:
+52 1 4773933942 (Whatsapp)

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe



--

--
Nhomar Hernandez
CEO Vauxoo.
Twitter: @nhomar
Odoo Gold Partner
Skype: nhomar00 (Envia mail previo no lo superviso siempre).
Móvil Venezuela:
+58 4144110269 (Telegram)
Móvil México:
+52 1 4773933942 (Whatsapp)

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe



--

--
Nhomar Hernandez
CEO Vauxoo.
Twitter: @nhomar
Odoo Gold Partner
Skype: nhomar00 (Envia mail previo no lo superviso siempre).
Móvil Venezuela:
+58 4144110269 (Telegram)
Móvil México:
+52 1 4773933942 (Whatsapp)