Browse Source

[MIG] partner_affiliate: Migration to 14.0

14.0
Achraf Mhadhbi 4 years ago
parent
commit
163a2579f4
  1. 4
      partner_affiliate/README.rst
  2. 1
      partner_affiliate/__manifest__.py
  3. 1
      partner_affiliate/readme/CONTRIBUTORS.rst
  4. 32
      partner_affiliate/views/res_partner_view.xml

4
partner_affiliate/README.rst

@ -23,7 +23,7 @@ Partner Affiliates
:target: https://runbot.odoo-community.org/runbot/134/13.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
|badge1| |badge2| |badge3| |badge4| |badge5|
This module adds a new tab "Affiliates" in the partner form view and modifies the purpose of the tab "Contacts & Addresses". This new tab "Affiliates" is visible only if the partner is a company.
@ -65,6 +65,7 @@ Authors
* Tecnativa
* brain-tec AG
* Onestein
* Bloopark Systems
Contributors
~~~~~~~~~~~~
@ -75,6 +76,7 @@ Contributors
* Dave Lasley <dave@laslabs.com>
* Dennis Sluijk <d.sluijk@onestein.nl>
* Stephan Rozendaal <stephan.rozendaal@neobis.net>
* Achraf Mhadhbi <machraf@bloopark.de>
Other credits
~~~~~~~~~~~~~

1
partner_affiliate/__manifest__.py

@ -1,6 +1,7 @@
# Copyright 2012 Camptocamp SA - Yannick Vaucher
# Copyright 2017 Tecnativa - Vicent Cubells
# Copyright 2018 brain-tec AG - Raul Martin
# Copyright 2021 Bloopark Systems - Achraf Mhadhbi
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Partner Affiliates",

1
partner_affiliate/readme/CONTRIBUTORS.rst

@ -4,3 +4,4 @@
* Dave Lasley <dave@laslabs.com>
* Dennis Sluijk <d.sluijk@onestein.nl>
* Stephan Rozendaal <stephan.rozendaal@neobis.net>
* Achraf Mhadhbi <machraf@bloopark.de>

32
partner_affiliate/views/res_partner_view.xml

@ -54,14 +54,9 @@
<div
t-att-class="color + (record.title.raw_value == 1 ? ' oe_kanban_color_alert' : '') + ' oe_kanban_global_click'"
>
<a
t-if="!read_only_mode"
type="delete"
class="fa fa-times pull-right"
/>
<div class="o_kanban_image">
<img
alt=""
alt="Contact image"
t-if="record.image_128.raw_value"
t-att-src="kanban_image('res.partner', 'image_128', record.id.raw_value)"
/>
@ -87,19 +82,20 @@
<img
alt="Avatar"
t-if="record.is_company.raw_value === false"
t-att-src='_s + "/base/static/img/avatar.png"'
t-att-src='_s + "/base/static/img/avatar_grey.png"'
/>
</t>
</t>
</div>
<div class="oe_kanban_details">
<field name="name" />
<div t-if="record.function.raw_value">
<field name="function" />
</div>
<div t-if="record.email.raw_value">
<field name="email" widget="email" />
</div>
<div t-if="record.function.raw_value"><field
name="function"
/></div>
<div t-if="record.email.raw_value"><field
name="email"
widget="email"
/></div>
<div
t-if="record.type.raw_value != 'contact'"
>
@ -113,12 +109,14 @@
/>
<field name="country_id" />
</div>
<div
t-if="record.phone.raw_value"
>Phone: <field name="phone" /></div>
<div t-if="record.phone.raw_value">Phone: <t
t-esc="record.phone.value"
/></div>
<div
t-if="record.mobile.raw_value"
>Mobile: <field name="mobile" /></div>
>Mobile: <t
t-esc="record.mobile.value"
/></div>
</div>
</div>
</t>

Loading…
Cancel
Save