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

Want to have a button on the customer(res.partner view) from where a lead can be generated with auto populating the customer/contact info.  Along with the button would like to provide a text box where the user can fill in some details(basic requirements for the lead) which can go to internal notes of the lead.

  would like to make it on my own but need some guidance...   

 

Awatar
Odrzuć
Najlepsza odpowiedź

Hi Nischal,

pls check the code that creates a PO from a Purchase Requisition, it will fully guide you, but this needs some work.

You have to install the Purchase requisition module, create a PR and from it create a PO.

The key method for my example is 

make_purchase_order

There are also some other examples, like creating an Invoice from a sales order/purchase order.

For full set of examples that you can wander along them you can search the code for 

.create(

this will guide you more


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lis 16
3394
0
mar 25
1620
0
sty 25
3793
1
sie 23
15242
change password Rozwiązane
1
sie 23
13853