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

Hello Everybody,

I want to give my invoices a number like : (actual month -1)/invoice Serial number, for example, this is month 9, I want that the system gives my invoices a number like 08/39000, I can now only give my invoices a number like : 09/39000

I tried in the prefix to do : %((month)s-1) but the minus 1 does'nt work.

Thanks in advance for your precious help.

 

아바타
취소
작성자 베스트 답변

Hello, 

I've tried it, it gives me this error  : 

Constraint Error
Invoice Number must be unique per Company.

Thanks.

아바타
취소

Maybe you have already invoice with same number in previous month. Try it on empty database.

작성자

I think It ust took month-1 like 09-1, it did'nt take it like an arithmetic operation, that's why, because I had the same result using %((month)s-1)

It could be. you must see invoice number genreated

2014-09-11 15:19 GMT+02:00 Yassine TEIMI <yteimi01@gmail.com>:

I think It ust took month-1 like 09-1, it did'nt take it like an arithmetic operation, that's why, because I had the same result using %((month)s-1)

--
Yassine TEIMI
Sent by OpenERP S.A. using Odoo about Forum Post False

베스트 답변

I do not know if it works but if it would work it would be:

%((month-1)s)

아바타
취소
작성자

Hello, I've tried it, it gives me this error : Constraint Error Invoice Number must be unique per Company. Thanks.

관련 게시물 답글 화면 활동
0
9월 24
1657
2
3월 24
3395
2
2월 23
4011
6
10월 20
38408
1
9월 20
4601