Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Prevent to delete product imported by a module
Re: Prevent to delete product imported by a module
Re: Prevent to delete product imported by a module
by
Elico Corp, Eric Caudal
+1000 (should be standard Odoo)
Thanks for your suggestions
David BEAL - Akretion
Odoo Development / Integration
--
Eric Caudal [Founder and CEO]
Skype: elico.corp. Phone: + 86 186 2136 1670 (Cell), + 86 21 6211 8017/27/37 (Office)
Elico Shanghai (Hong Kong/Shenzhen/Singapore) Odoo Gold Partner, best Odoo Partner 2014 for APAC
Eric Caudal [Founder and CEO]
Skype: elico.corp. Phone: + 86 186 2136 1670 (Cell), + 86 21 6211 8017/27/37 (Office)
Elico Shanghai (Hong Kong/Shenzhen/Singapore) Odoo Gold Partner, best Odoo Partner 2014 for APAC
On 05/19/2016 05:23 PM, David Beal
wrote:
<blockquote
cite="mid:CABza1vzP4bFjj9Hv9C9BMsXuXAa4xYg50UV=CFeR4JFyDyHYTw@mail.gmail.com"
type="cite">
Hi all,
I need a generic way to prevent the user to delete product or
any other record created by a module.What are the best options ?
I suggest:
- a base module
- which override unlink() by monkey patching
- check if in this record a boolean field named 'protected' or other convention exist and is True
- a base module
- which override unlink() by monkey patching
- check if in this record a boolean field named 'protected' or other convention exist and is True
- then prevent unlink
What do you think ?
Thanks for your suggestions
David BEAL - Akretion
Odoo Development / Integration
_______________________________________________
Mailing-List: http://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: http://odoo-community.org/groups?unsubscribe
Reference
-
Prevent to delete product imported by a module
byAkretion France., David BEAL-
Re: Prevent to delete product imported by a module
byAkretion France., David BEAL -
Re: Prevent to delete product imported by a module
bySYLEAM SARL, Sylvain Garancher -
Re: Prevent to delete product imported by a module
byVauxoo, Moisés López Calderón -
Re: Prevent to delete product imported by a module
byElico Corp, Eric Caudal -
Re: Prevent to delete product imported by a module
byClosingAp Open Source Integrators Europe, LDA, Daniel Reis
-