콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
6057 화면

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

아바타
취소
베스트 답변

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

관련 게시물 답글 화면 활동
1
2월 20
3593
2
5월 25
7623
3
10월 20
6148
2
12월 19
4840
0
10월 19
3213