Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3665 Widoki

I am helping a friend consider migrating to Odoo from Sage for his small business. He doesn't have anything complicated and simply sells a service (no products). In Sage, he would put the service he would do in the Description, and the price, and how many square feet in the quantity. All I want to do is make Odoo stop requiring me to enter a product. How do I do that? I found sale_quote.py and I think that is the file I need to edit. I changed what I think is supposed to be required=true to required=false. I also edited the form view in Odoo (using Odoo 11), and I erased various things such as force_save="1", but nothing is working.

How do I go about disabling product requirement? To specify, this is in Sales > Orders > Quotations

Awatar
Odrzuć
Najlepsza odpowiedź

The purpose of a Sales Order is to support fulfillment - it sounds like you should skip straight to the Invoice.

Create the Invoice, then validate it when the service is delivered.

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

If you have to remove the required attribute from the order line for the product , you have to look this file sale.py .  In the sale.py,  in the model sale.order.line you can see a field named product_id. You can remove the required=True from it.


But I don't think you can easily remove the required attribute and go ahead.  I hope , even though you remove the required attribute for the field you will get many issues. if you have good technical knowledge you go ahead with resolving all the issues coming in front.


I will suggest you to use the invoice, whereas you can create customer invoice directly where the product is not a required field. Just add the details in description field.  Check out that and see, whether it can satisfy you.


Thanks

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
sty 23
1298
0
gru 21
1744
3
mar 15
5735
1
sie 25
188
2
cze 25
1697