<record id="view_sale_order_last_month" model="ir.rule">
<field name="name">View last one month order</field>
<field name="model_id" ref="sale.model_sale_order"/>
<field name="domain_force">[(‘create_date','>=',(context_today()-relativedelta(months=1)).strftime('%%Y-%%m-01')),(‘create_date','<',time.strftime('%%Y-%%m-01'))]</field>
<field eval="1" name="perm_read"></field>
<field eval="0" name="perm_write"></field>
<field eval="0" name="perm_unlink"></field>
<field eval="0" name="perm_create"></field>
</record>
La domanda è stata contrassegnata
6370
Visualizzazioni
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
|
6
mag 24
|
55144 | ||
|
|
0
lug 23
|
207 | ||
|
|
1
feb 23
|
697 | ||
|
|
0
feb 23
|
724 | ||
|
|
1
apr 22
|
5243 |
Why would you want to do that using a Record Rule? Why not try Filters: https://www.odoo.com/forum/help-1/question/115765/#answer-115766