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

Hi everybody

I want to get the default sale using the code,

I use the OERP 7.0, and I think that I cant retrieve the account.config.settings object because it has field named default_sale_tax but this object is empty, and in the accounting config I find the tax is setted

Now I have a method that have to return the default tax_id but which object and which field ?

Thank you

아바타
취소
베스트 답변

try:

ir_values = self.pool.get('ir.values')
taxes_id = ir_values.get_default(cr, uid, 'product.product', 'taxes_id', company_id=company_id)

p.s. if you are not using multicompany..: company_id=1

아바타
취소
베스트 답변

Same problem please your help would be precious.

아바타
취소
관련 게시물 답글 화면 활동
1
12월 20
3087
1
7월 25
2477
1
7월 25
5886
1
3월 25
1756
2
8월 24
2517