Browse Source

[MIG] partner_affiliate: Migration to 13.0

14.0
Stephan Rozendaal 5 years ago
committed by Achraf Mhadhbi
parent
commit
c168aded8d
  1. 2
      partner_affiliate/__manifest__.py
  2. 1
      partner_affiliate/readme/CONTRIBUTORS.rst
  3. 2
      partner_affiliate/readme/DESCRIPTION.rst
  4. 8
      partner_affiliate/views/res_partner_view.xml

2
partner_affiliate/__manifest__.py

@ -4,7 +4,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Partner Affiliates",
"version": "12.0.1.0.0",
"version": "13.0.1.0.0",
"author": "Camptocamp, "
"Tecnativa, "
"brain-tec AG, "

1
partner_affiliate/readme/CONTRIBUTORS.rst

@ -3,3 +3,4 @@
* Raul Martin <raul.martin@braintec-group.com>
* Dave Lasley <dave@laslabs.com>
* Dennis Sluijk <d.sluijk@onestein.nl>
* Stephan Rozendaal <stephan.rozendaal@neobis.net>

2
partner_affiliate/readme/DESCRIPTION.rst

@ -1,5 +1,5 @@
The field 'Contacts & Addresses' is focused on storing contact information about the company's employees and the
company it self.
company itself.
This module adds a new field 'Affiliates' on the partner form and changes 'Contacts & Addresses'
to only show individuals. This new field is in contrast to 'Contacts & Addresses' focussed on
storing information about holding companies and other company structures.

8
partner_affiliate/views/res_partner_view.xml

@ -32,21 +32,19 @@
<field name="country_id"/>
<field name="mobile"/>
<field name="state_id"/>
<field name="image_small"/>
<field name="image_128"/>
<field name="lang"/>
<!-- fields in form x2many view to diminish requests -->
<field name="comment"/>
<field name="customer"/>
<field name="display_name"/>
<field name="supplier"/>
<templates>
<t t-name="kanban-box">
<t t-set="color" t-value="kanban_color(record.color.raw_value)"/>
<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="" t-if="record.image_small.raw_value" t-att-src="kanban_image('res.partner', 'image_small', record.id.raw_value)"/>
<t t-if="!record.image_small.raw_value">
<img alt="" t-if="record.image_128.raw_value" t-att-src="kanban_image('res.partner', 'image_128', record.id.raw_value)"/>
<t t-if="!record.image_128.raw_value">
<img alt="Delivery" t-if="record.type.raw_value === 'delivery'" t-att-src='_s + "/base/static/img/truck.png"'/>
<img alt="Invoice" t-if="record.type.raw_value === 'invoice'" t-att-src='_s + "/base/static/img/money.png"'/>
<t t-if="record.type.raw_value !== 'invoice' &amp;&amp; record.type.raw_value !== 'delivery'">

Loading…
Cancel
Save