Dear all,
I am creating a new sequence for my new document type in Odoo 12.
For the xml file for my new sequence I have:
<record id="sequence_customer_moneysale" model="ir.sequence">
<field name="name">Document Sequence Name</field>
<field name="prefix">XYZ/%(range_year)s/</field>
<field name="implementation">no_gap</field>
<field eval="1" name="number_next"/>
<field eval="1" name="number_increment"/>
<field eval="True" name="use_date_range"/>
<field eval="False" name="company_id"/>
<field name="padding">4</field>
</record>
Now, I need to set the "date_range_ids" in order to automatically get the first day of the year for the "From" field and the last day of the year for the "To" field.
How can I achieve that?
Thank you all in advance
Best regards
Paulo
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
1
Rispondi
5957
Visualizzazioni
Hi Paulo: You will need to create corresponding records in the ir.sequence.date_range model for this.
Dear @Paresh W
Thank you very much.
You're right. It's working as expected.
+1 for you.
Thank you once again
Best regards
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!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
1
feb 20
|
3529 | ||
|
2
mag 25
|
7493 | ||
|
3
ott 20
|
6064 | ||
|
2
dic 19
|
4755 | ||
|
0
ott 19
|
3146 |