python 2.7 - Is there any way to create two tables in the database for one odoo module? -


each module in odoo have table in database.

i'd know if can create 2 tables in odoo database 1 module.

yes can, every class new_class(... unique _name="new.class" created table in data base, if want more 1 table, need create more 1 class in .py file

for more reference account module in account_invoice.py have class account_invoice(models.model): _name = "account.invoice" , class account_invoice_line(models.model): _name = "account.invoice.line" each class table in data base. hope can you!


Comments