Skip to Content
Menu
This question has been flagged
2 Replies
3684 Views

Hi, I develop under odoo 15. 

I have already created a module of entities "entities" management (Customers, Vondors, Products, ...), and now I am creating an invoincing "invoice" module.


For the moment, in the "invoice" module, I have created a model "invoice_temporary.py" to collect all the data needed for an invoice from the "entities" models.


So now I plan to create the real invoice (which respects the condition of inalterability) from the "invoice_temporary" model.

With this model, I have all the data needed for the real invoice, so I ask here :

"How can I create an inalterable invoice from a simple model ?"

"Should I create the invoice in another way ?"


Thanks in advance, I tried to be as clear as possible,

Hugo


Avatar
Discard
Author

Hi, and thanks for the answer,

For the first link you gave me (the other forum answer), I understand how the function works, but not how to use it. I mean that I don't know where (in which file ?) to put it, I tried to place it in the model itself, but I don't know how to use it after it has been declared.

Could you please help me to know in which file i have to place the function, and then how and where do I call it ?

Thank you

Best Answer

Hi Hugo,

Check this existing forum answer : https://www.odoo.com/forum/help-1/create-invoice-by-code-odoo14-190183

And for creating record from odoo code ,refer: https://www.youtube.com/watch?v=Jssb15ADeyg 

Hope this will help you 

Thank you




Avatar
Discard
Related Posts Replies Views Activity
0
Apr 23
882
0
Jan 23
805
0
Nov 24
133
1
Sep 24
233
2
Aug 24
354