Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2315 Представления

I need to add a folder to save the printed report of the model account.move


i add this code and i have no idea how to make the report stored in the folder


class ResCompany(models.Model):
_inherit = "res.company"

folder_invoice_id = fields.Many2one("dms.folder", string="Invoice folder")


class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"

folder_invoice_id = fields.Many2one(
related="company_id.folder_invoice_id",
string="Invoice folder", readonly=False
)

res.config.settings.view.form.inherit.account.dms
res.config.settings



"""

Document Management





Invoices folder

Folders which will be available to invoices attachments




"""



Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
дек. 21
2185
2
мар. 15
15582
3
мар. 15
12184
0
мая 24
1180
2
мар. 24
2221