Skip to Content
Menu
This question has been flagged
5 Replies
2341 Views

Hi everyone. Please help me to figure out how can I do this.

I need a simple checkbox in Quotation Form (Pic. 1). Then I want that checkbox also to be present on Invoice (Pic 2). I'm not familiar with coding so I am doing all this stuff from user interface.

However, I'm not able to make appear that box in Quotation form. I added a new custom field x_credit as boolean to sale.order Model, then I added the code in Architecture for that form like <field name="x_credit"/> like I am doing in other modules(ex. Maintenance etc) but this checkbox doesn't appear in quotation form.

My question is 

1. How to make that boolean checkbox appear on quotation form

2. How to make the same Checkbox present on Invoice (the same checkbox as in sales quotation with vale from quotation order, true or false).


I will appreciate your help and thanks for your time in advance. 

Avatar
Discard

Can you post the pictures ?

Author

Hi Imad, thanks for reply, odoo doesn't showing any error there but still after refreshing it doesn't showing the checkbox unlike the other models. In maintenance I was able to do that in the same way and it shows but in sales no. 

Best Answer

Hi Alek ,

if Odoo does not show a problem when saving then just look where did you put your field and after refresh the page it will appear,

About the second question you can just define the same field boolean in invoice like sales and in bottom you set it as related field and you put the name of your field from sales

or you'll need to override the create_invoices function and pass your field with it,

Hope this will help you.

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 22
2171
0
Jun 15
2678
2
Feb 24
3242
0
Jan 24
399
2
Feb 24
5126