Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Modeling general business workflows

by
Data Dance s.r.o., Radovan Skolnik
- 18/03/2024 18:34:47
Hi Adam,

I am very much aware of this but that would mean programming all the logic. I 
was looking for something where I would just configure things.

Best regards,

	Radovan

On pondelok 18. marca 2024 18:31:47 CET Adam Heinz wrote:

> Odoo has some special handling for any model with a field named "state" that

> lends itself towards this sort of effort. You can decorate other fields

> with "states" in Python and XML to pay attention to its value, i.e.

> currency_id = fields.Many2one('res.currency', store=True, readonly=True,

> tracking=True, required=True, states={'draft': [('readonly', False)]},

> string='Currency',

> default=_get_default_currency)

> <button name="action_post" states="draft" icon="fa-check" title="Post"

> type="object" groups="account.group_account_invoice"/> This should allow

> you to drive a user through a mostly linear workflow without too much

> trouble, by showing only actions appropriate to the current state and

> marking fields readonly once they should no longer be changed. On Mon, Mar

> 18, 2024 at 11:22 AM Radovan Skolnik < notifications@odoo-community.org [1]

> > wrote: Hello,

> is anyone aware of any module that would allow for some kind of general

> workflow? I have a requirement for something the customer calls "Personnel

> Requisition Request" where hiring manager initiates a request to head of

> department, then when approved moves to another department for filling in

> some data, then is set back, ... This particular case involves hiring but I

> guess such need is more general. I can handle approvals with existing tier

> validation modules. I can build an object to represent the request. Using

> tasks as request and stages came to my mind. But I have a feeling that

> there is (could be) fomething to automate the business flow. Any ideas are

> welcome. Thank you very much. Best regards

> Radovan Skolnik

> 

> 

> _______________________________________________

> Mailing-List: https://odoo-community.org/groups/contributors-15 [2]

> Post to: mailto: contributors@odoo-community.org [3]

> Unsubscribe: https://odoo-community.org/groups?unsubscribe [4]

> 

> 

> _______________________________________________

> Mailing-List: https://odoo-community.org/groups/contributors-15 [5]

> Post to: mailto:contributors@odoo-community.org

> Unsubscribe: https://odoo-community.org/groups?unsubscribe [6]

> 

> 

> 

> [1] mailto:notifications@odoo-community.org

> [2] https://odoo-community.org/groups/contributors-15

> [3] mailto:contributors@odoo-community.org

> [4] https://odoo-community.org/groups?unsubscribe

> [5] https://odoo-community.org/groups/contributors-15

> [6] https://odoo-community.org/groups?unsubscribe




Reference