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?
لقد تم الإبلاغ عن هذا السؤال
1
الرد
3840
أدوات العرض
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.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
0
مايو 26
|
1 | ||
|
|
3
أبريل 25
|
8100 | ||
|
|
5
نوفمبر 23
|
46428 | ||
|
Create dynamic tree view
تم الحل
|
|
3
سبتمبر 23
|
12086 | |
|
|
1
سبتمبر 22
|
5846 |