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

Hello,

After adding and printing bill in Odoo POS I'm not able to valide payment anymore. I'm getting the following error:

You cannot edit a payment for a printed order.


I'm using odoo to manage a Bar/restaurant

아바타
취소
베스트 답변

I don't know why on earth is this logic exists but you can do

 

from "addons/point_of_sale/models/pos_order.py"

 

Comment This 2 lines

 

if order.nb_print > 0 and vals.get('payment_ids'):

      raise UserError(_('You cannot change the payment of a printed order.'))

 

 

from "addons/point_of_sale/models/pos_payment.py"

 

Comment This 2 lines

elif payment.pos_order_id.nb_print > 0:

      raise ValidationError(_('You cannot edit a payment for a printed order.'))

 

Save and restart odoo service

 

 

Hope it solves

아바타
취소
베스트 답변

Did you find a solution ?

아바타
취소
관련 게시물 답글 화면 활동
5
7월 25
3751
1
3월 25
913
1
11월 24
1239
3
7월 25
2396
0
7월 25
362