Mailing : actions #42

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

View File

@ -18,19 +18,38 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<odoo>
<data>
<act_window name="Family Mass Mailing"
res_model="mail.compose.message"
src_model="golem.family"
view_mode="form"
multi="True"
target="new"
key2="client_action_multi"
id="action_golem_family_mass_mail"
context="{
'default_composition_mode': 'mass_mail',
'default_partner_to': '${object.id or \'\'}',
'default_use_template': True,
'default_template_id': ref('email_template_partner'),
}"/>
<!-- Family member mass mailing action-->
<record id="action_family_members_mass_mailing" model="ir.actions.server">
<field name="name">Family members mass mailing</field>
<field name="model_id" ref="golem_family.model_golem_family"/>
<field name="state">code</field>
<field name="code">
action = records.get_mass_mailing_action('members')
</field>
</record>
<record id="ir_family_members_mass_mailing" model="ir.values">
<field name="key2" eval="'client_action_multi'" />
<field name="model" eval="'golem.family'" />
<field name="name">Family Members mass mailing</field>
<field name="value"
eval="'ir.actions.server,%d'%action_family_members_mass_mailing" />
</record>
<!-- Family mass mailing action-->
<record id="action_family_mass_mailing" model="ir.actions.server">
<field name="name">Family mass mailing</field>
<field name="model_id" ref="golem_family.model_golem_family"/>
<field name="state">code</field>
<field name="code">
action = records.get_mass_mailing_action('family')
</field>
</record>
<record id="ir_family_mass_mailing" model="ir.values">
<field name="key2" eval="'client_action_multi'" />
<field name="model" eval="'golem.family'" />
<field name="name">Family mass mailing</field>
<field name="value"
eval="'ir.actions.server,%d'%action_family_mass_mailing" />
</record>
</data>
</odoo>