Files
odoo_source/addons/delivery_mondialrelay/views/views.xml
T
Romain Derie 23c88405a9 [FIX] base: restore delivery and shipping image on contact in kanban
Since c53724ebc3, the contact image in contact kanban view for a shipping
or delivery contact type would be the regular placeholder instead of the truck
or money image.

Now, by using the new avatar system, we restore that behavior.

+ we also use that new avatar system to cleanup some code in the kanban in the
  form view (`child_ids` field in `Contacts & Addresses` tab). That part was
   working fine but wasn't using the new system and needed extra code.

closes odoo/odoo#75709

X-original-commit: a97cbdd033391af75628bed50accfef11c73687c
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
2021-08-31 08:47:14 +00:00

29 lines
1.2 KiB
XML

<odoo>
<data>
<record id="view_delivery_carrier_form_provider_mondialrelay" model="ir.ui.view">
<field name="name">delivery.carrier.form.provider.mondialrelay</field>
<field name="model">delivery.carrier</field>
<field name="inherit_id" ref="delivery.view_delivery_carrier_form"/>
<field name="arch" type="xml">
<field name="product_id" position="after">
<field name="is_mondialrelay" invisible="1" />
<field name="mondialrelay_brand" attrs="{'required': [('is_mondialrelay', '=', True)], 'invisible': [('is_mondialrelay', '!=', True)]}" />
</field>
</field>
</record>
<record id="view_delivery_carrier_tree_provider_mondialrelay" model="ir.ui.view">
<field name="name">delivery.carrier.tree.provider.mondialrelay</field>
<field name="model">delivery.carrier</field>
<field name="inherit_id" ref="delivery.view_delivery_carrier_tree"/>
<field name="arch" type="xml">
<field name="company_id" position="after">
<field name="country_ids" widget="many2many_tags" />
</field>
</field>
</record>
</data>
</odoo>