Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: recurring report

by
Ygol InternetWork, Yves Goldberg
- 04/06/2021 09:07:49
Tnx for the feedback Holger & sorry if I wasn't clear enough.

There is a custom model "consumptions" and I would like to give the user the ability to configure the periodic generation and sending of some specific report to a res_partner defined in the agreement.

The user would click to add a new periodic report. Fill in the settings and select a report to be sent.

 --
Yves Goldberg
--


----- Original message -----
From: Holger Brunn <mail@hunki-enterprises.com>
Subject: Re: recurring report
Date: Wednesday, June 02, 2021 18:27

> From an agreement, manage the generation and sending of monthly or quarterly

> report to a party set in the agreement. Do we have something that could

> help in OCA?

I think that's pretty much standard Odoo: Create a server action of type email 
(https://github.com/OCA/OCB/blob/14.0/addons/mail/models/ir_actions.py#L17), 
create a mail template pointing to your report (https://github.com/OCA/OCB/
blob/14.0/addons/mail/models/mail_template.py#L56), and stick the whole thing 
into an automated action (https://github.com/OCA/OCB/blob/14.0/addons/
base_automation/models/base_automation.py#L39) calling the action based on 
your period.


-- 
Your partner for the hard Odoo problems
https://hunki-enterprises.com


_______________________________________________
Post to: mailto:contributors@odoo-community.org



Attachments:
  • signature.asc

Reference