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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
1
回覆
2249
瀏覽次數
Yes, there are a couple of ways to add a checkbox to each product row in Odoo:
- 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.
- 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
|
4610 | ||
|
5
11月 23
|
42942 | ||
|
3
9月 23
|
9434 | ||
|
1
9月 22
|
3700 | ||
|
2
7月 22
|
3000 |