Mailing : actions #42

Open
youssef wants to merge 33 commits from youssef/GOLEM:Mailing_actions into master
Showing only changes of commit 09f989a705 - Show all commits

View File

@ -18,19 +18,30 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
--> -->
<odoo> <odoo>
<data> <data>
<act_window name="Partner Mass Mailing" <!-- Add action to members list-->
res_model="mail.compose.message" <record id="action_member_mass_mailing" model="ir.actions.server">
src_model="golem.member" <field name="name">Member mass mailing</field>
view_mode="form" <field name="model_id" ref="golem_member.model_golem_member"/>
multi="True" <field name="state">code</field>
target="new" <field name="code">
key2="client_action_multi" partners = records.getPartners()
id="action_golem_member_mass_mail" presend_wizard = env['golem.mail.presend.wizard'].create({'partner_ids': [(6, 0, partners)]})
context="{ action = {
'default_composition_mode': 'mass_mail', 'type': 'ir.actions.act_window',
'default_partner_to': 'trate9', 'res_model': 'golem.mail.presend.wizard',
'default_use_template': True, 'res_id': presend_wizard.id,
'default_template_id': ref('mail.email_template_partner'), 'view_mode': 'form',
}"/> 'view_type': 'form',
'target': 'new'
}
</field>
</record>
<record id="ir_member_mass_mailing" model="ir.values">
<field name="key2" eval="'client_action_multi'" />
<field name="model" eval="'golem.member'" />
<field name="name">Member mass mailing</field>
<field name="value"
eval="'ir.actions.server,%d'%action_member_mass_mailing" />
</record>
</data> </data>
</odoo> </odoo>