Contributors mailing list archives


Re: Well practise on rewrite action domain

MISYL SERVICES., Michael Delvoye
- 15/01/2017 11:22:21
Hello Houssine
Yes I do that
But my question is if I have 2 modules where I need to overwrite the action 

This 2 modules can be installed alone or on the same database
How can I do to make them complementary

For example
The first modify the domain to exclude records Parma A

The second also do that but another field Param B

I want to have an addition of these 2 rules 
Filter A and B

Michael Delvoye 

Le 15 janv. 2017 à 10:38, Houssine BAKKALI <> a écrit :

You just need to redefine the XML record using the same record Id (but prefixed with the name of the module where it's defined originally). 

Doing this your XML record will override the existing one

Le 12 janv. 2017 21:38, "Michael Delvoye" <> a écrit :
Hi every body
i need to rewrite action sale order like this in one module : 

<record id="sale.action_orders" model="ir.actions.act_window">
<field name="view_id" ref="sale.view_order_tree"/>
<field name="domain">[
('state', 'not in', ('draft', 'sent', 'cancel')),

Bu in an other module i need to exclude 'state' '='  'archived')
I don't know the best practise to do that.

Can you orient me. Of course I . can centralize it in one module but i would prefer to keep each module and to "cumulate" the domain.

Thanks for help

Michael Delvoye
Directeur Technique

Post to: