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

have an invoice and a list of orders associated with that invoice. I want checkbox at the beginning of each row for the products, and I need to interact with a large number of product rows. Is there any way to do this?

아바타
취소
베스트 답변

Yes, there are a couple of ways to add a checkbox to each product row in Odoo:


  1. Override the create invoice line function: This method involves modifying the function that creates invoice lines to only create an invoice for the checked lines.


  1. Create a new model: Another approach is to create a new model with the same fields as 'sale_order_line' and add your additional fields (including the checkbox) there. You can then add functionality so that if the checkbox is enabled, that line will automatically be added to 'sale_order_line'. If the checkbox is disabled, the line will be removed from 'sale_order_line'. This will require overriding the 'create', 'write', and 'unlink' functions of that model.
아바타
취소
관련 게시물 답글 화면 활동
3
4월 25
4845
5
11월 23
43204
3
9월 23
9576
1
9월 22
3870
2
7월 22
3183