Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
2076 Переглядів

Hi

I developed a module and i want the link the record to accounting so that invoice and payment can be effortlessly created from my module and it should be generated or shown in odoo accounting module.

Please i need knowledge on what to do. Please note i use ODOO 10

Аватар
Відмінити
Найкраща відповідь

Hi,

For this what you have to do is that you have to create the invoice should be generated from the code by taking the inputs of newly added module records..


Suppose if your module is a fleet rental, once the renting is done, we have to give the invoice to customer, for this purpose you can add a new button in the rental record for creating invoice like we have the create invoice button in sales.


In the button action, the invoice has to be generated.


values = {}

self.env['account.invoice'].create (values)


The values is the dictionary containing the values to create the invoice, and by calling the create method of the invoice and passing values you can create invoice.


Also give account module in depends of your module.


Thanks

Аватар
Відмінити
Найкраща відповідь

Thanks for your kind help Niyas 

I was also wondering about it.

Аватар
Відмінити