small improvement

This commit is contained in:
Youssef Elouahby 2018-11-12 18:02:42 +01:00
parent 8c044023d8
commit fd0bd4cbf7

View File

@ -24,16 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="model_id" ref="golem_member.model_golem_member"/> <field name="model_id" ref="golem_member.model_golem_member"/>
<field name="state">code</field> <field name="state">code</field>
<field name="code"> <field name="code">
partners = records.getPartners() action = records.get_mass_mailing_action()
presend_wizard = env['golem.mail.presend.wizard'].create({'partner_ids': [(6, 0, partners)]})
action = {
'type': 'ir.actions.act_window',
'res_model': 'golem.mail.presend.wizard',
'res_id': presend_wizard.id,
'view_mode': 'form',
'view_type': 'form',
'target': 'new'
}
</field> </field>
</record> </record>
<record id="ir_member_mass_mailing" model="ir.values"> <record id="ir_member_mass_mailing" model="ir.values">