[IMP] pre-commit run -a
This commit is contained in:
parent
1def741e34
commit
16f1ce9ddb
@ -10,7 +10,10 @@
|
||||
<record model="ir.ui.view" id="view_mail_mass_mailing_contact_tree">
|
||||
<field name="name">mailing.contact.tree.inherit</field>
|
||||
<field name="model">mailing.contact</field>
|
||||
<field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_contact_tree"/>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="mass_mailing.view_mail_mass_mailing_contact_tree"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="email" position="after">
|
||||
<field name="partner_id" />
|
||||
@ -21,28 +24,43 @@
|
||||
<record model="ir.ui.view" id="view_mail_mass_mailing_contact_form">
|
||||
<field name="name">mailing.contact.form.partner</field>
|
||||
<field name="model">mailing.contact</field>
|
||||
<field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_contact_form"/>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="mass_mailing.view_mail_mass_mailing_contact_form"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='email']/.." position="after">
|
||||
<field name="partner_id" />
|
||||
</xpath>
|
||||
<field name="title_id" position="attributes">
|
||||
<attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{'readonly': [('partner_id', '!=', False)]}</attribute>
|
||||
</field>
|
||||
<field name="email" position="attributes">
|
||||
<attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{'readonly': [('partner_id', '!=', False)]}</attribute>
|
||||
</field>
|
||||
<field name="name" position="attributes">
|
||||
<attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{'readonly': [('partner_id', '!=', False)]}</attribute>
|
||||
</field>
|
||||
<field name="company_name" position="attributes">
|
||||
<attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{'readonly': [('partner_id', '!=', False)]}</attribute>
|
||||
</field>
|
||||
<field name="country_id" position="attributes">
|
||||
<attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{'readonly': [('partner_id', '!=', False)]}</attribute>
|
||||
</field>
|
||||
<field name="tag_ids" position="attributes">
|
||||
<attribute name="attrs">{'readonly': [('partner_id', '!=', False)]}</attribute>
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{'readonly': [('partner_id', '!=', False)]}</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
@ -50,15 +68,20 @@
|
||||
<record model="ir.ui.view" id="view_mail_mass_mailing_contact_search">
|
||||
<field name="name">Add partner search field and group by</field>
|
||||
<field name="model">mailing.contact</field>
|
||||
<field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_contact_search"/>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="mass_mailing.view_mail_mass_mailing_contact_search"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="after">
|
||||
<field name="partner_id" />
|
||||
</field>
|
||||
<filter name="group_create_date" position="after">
|
||||
<filter string="Partner"
|
||||
<filter
|
||||
string="Partner"
|
||||
name="group_partner"
|
||||
context="{'group_by': 'partner_id'}"/>
|
||||
context="{'group_by': 'partner_id'}"
|
||||
/>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
|
@ -35,9 +35,11 @@
|
||||
<field name="partner_id" />
|
||||
</field>
|
||||
<filter name="group_reply_date" position="after">
|
||||
<filter string="Partner"
|
||||
<filter
|
||||
string="Partner"
|
||||
name="group_partner"
|
||||
context="{'group_by': 'partner_id'}"/>
|
||||
context="{'group_by': 'partner_id'}"
|
||||
/>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
|
@ -11,28 +11,39 @@
|
||||
<field name="name">Partner Form with mailing contacts</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_partner_form" />
|
||||
<field name="groups_id" eval="[(4, ref('mass_mailing.group_mass_mailing_user'))]"/>
|
||||
<field
|
||||
name="groups_id"
|
||||
eval="[(4, ref('mass_mailing.group_mass_mailing_user'))]"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<div name="button_box" position="inside">
|
||||
<button name="%(mass_mailing.action_view_mass_mailing_contacts)d"
|
||||
<button
|
||||
name="%(mass_mailing.action_view_mass_mailing_contacts)d"
|
||||
context="{'search_default_partner_id': active_id,
|
||||
'default_partner_id': active_id}"
|
||||
type="action"
|
||||
class="oe_stat_button oe_inline"
|
||||
icon="fa-envelope-o">
|
||||
<field name="mass_mailing_contacts_count"
|
||||
icon="fa-envelope-o"
|
||||
>
|
||||
<field
|
||||
name="mass_mailing_contacts_count"
|
||||
widget="statinfo"
|
||||
string="Mailing contacts"/>
|
||||
string="Mailing contacts"
|
||||
/>
|
||||
</button>
|
||||
<button name="%(mass_mailing.mailing_trace_action)d"
|
||||
<button
|
||||
name="%(mass_mailing.mailing_trace_action)d"
|
||||
context="{'search_default_partner_id': active_id,
|
||||
'default_partner_id': active_id}"
|
||||
type="action"
|
||||
class="oe_stat_button oe_inline"
|
||||
icon="fa-envelope-o">
|
||||
<field name="mass_mailing_stats_count"
|
||||
icon="fa-envelope-o"
|
||||
>
|
||||
<field
|
||||
name="mass_mailing_stats_count"
|
||||
widget="statinfo"
|
||||
string="Mass mailing stats"/>
|
||||
string="Mass mailing stats"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</field>
|
||||
@ -42,12 +53,18 @@
|
||||
<field name="name">Partner Search with mailing contacts</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_res_partner_filter" />
|
||||
<field name="groups_id" eval="[(4, ref('mass_mailing.group_mass_mailing_user'))]"/>
|
||||
<field
|
||||
name="groups_id"
|
||||
eval="[(4, ref('mass_mailing.group_mass_mailing_user'))]"
|
||||
/>
|
||||
<field name="priority">20</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="category_id" position="after">
|
||||
<field name="mass_mailing_contact_ids" string="Mailing List"
|
||||
filter_domain="[('mass_mailing_contact_ids.list_ids','ilike', self)]"/>
|
||||
<field
|
||||
name="mass_mailing_contact_ids"
|
||||
string="Mailing List"
|
||||
filter_domain="[('mass_mailing_contact_ids.list_ids','ilike', self)]"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
@ -6,12 +6,14 @@
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
|
||||
<odoo>
|
||||
|
||||
<act_window id="action_partner_mail_list"
|
||||
<act_window
|
||||
id="action_partner_mail_list"
|
||||
name="Add to mailing list"
|
||||
res_model="partner.mail.list.wizard"
|
||||
binding_model="res.partner"
|
||||
target="new"
|
||||
view_mode="form"/>
|
||||
view_mode="form"
|
||||
/>
|
||||
|
||||
<record model="ir.ui.view" id="partner_mail_list_wizard_form">
|
||||
<field name="name">partner.mail.list.form</field>
|
||||
@ -22,8 +24,12 @@
|
||||
<field name="mail_list_id" />
|
||||
</group>
|
||||
<footer>
|
||||
<button string="Add contacts to mailing list" name="add_to_mail_list"
|
||||
type="object" class="oe_highlight"/>
|
||||
<button
|
||||
string="Add contacts to mailing list"
|
||||
name="add_to_mail_list"
|
||||
type="object"
|
||||
class="oe_highlight"
|
||||
/>
|
||||
<button string="Cancel" class="oe_link" special="cancel" />
|
||||
</footer>
|
||||
</form>
|
||||
|
Loading…
Reference in New Issue
Block a user