Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Well practise on rewrite action domain
byHello HoussineYes I do thatBut my question is if I have 2 modules where I need to overwrite the actionThis 2 modules can be installed alone or on the same databaseHow can I do to make them complementaryFor exampleThe first modify the domain to exclude records Parma AThe second also do that but another field Param BI want to have an addition of these 2 rulesFilter A and B
Michael DelvoyeYou 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 oneLe 12 janv. 2017 21:38, "Michael Delvoye" <mdelvoye@misyl-services.com> a écrit :Hi every bodyi 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')),
('x_type_contract','=','1')
]
</field>
</record>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 DelvoyeDirecteur TechniqueMISYL SERVICES______________________________
_________________
Mailing-List: http://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: http://odoo-community.org/groups?unsubscribe ______________________________
_________________
Mailing-List: http://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: http://odoo-community.org/groups?unsubscribe ______________________________
_________________
Mailing-List: http://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: http://odoo-community.org/groups?unsubscribe
Reference
-
Well practise on rewrite action domain
byMISYL SERVICES., Michael Delvoye-
Re: Well practise on rewrite action domain
byMISYL SERVICES., Michael Delvoye -
Re: Well practise on rewrite action domain
byMISYL SERVICES., Michael Delvoye -
Re: Well practise on rewrite action domain
byMISYL SERVICES., Michael Delvoye -
Re: Well practise on rewrite action domain
byWilldooIT, Richard deMeester -
Re: Well practise on rewrite action domain
byMISYL SERVICES., Michael Delvoye -
Re: Well practise on rewrite action domain
byWeb-veistämö Oy/Avoin.Systems, Miku Laitinen. -
Re: Well practise on rewrite action domain
byOpen Architects Consulting, Houssine BAKKALI -
Re: Well practise on rewrite action domain
byMISYL SERVICES., Michael Delvoye -
Re: Well practise on rewrite action domain
byOpen Architects Consulting, Houssine BAKKALI
-