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