Browse Source

[REF] partner_age: remove emc dependency

pull/97/head
robin.keunen 5 years ago
parent
commit
9fde56a981
  1. 4
      easy_my_coop/__manifest__.py
  2. 6
      partner_age/__manifest__.py
  3. 18
      partner_age/view/partner_view.xml

4
easy_my_coop/__manifest__.py

@ -1,6 +1,7 @@
# Copyright 2013-2018 Open Architects Consulting SPRL.
# Copyright 2018 Coop IT Easy SCRLfs (<http://www.coopiteasy.be>)
# - Houssine BAKKALI - <houssine@coopiteasy.be>
# Houssine BAKKALI - <houssine@coopiteasy.be>
# Robin Keunen <robin@coopiteasy.be>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
@ -14,6 +15,7 @@
"account",
"base_iban",
"product",
"partner_age",
"partner_firstname",
"partner_contact_birthdate",
"partner_contact_address",

6
partner_age/__manifest__.py

@ -4,11 +4,11 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).#
{
"name": "Partner Age",
"version": "12.0.1.0.0",
"depends": ["easy_my_coop", "partner_contact_birthdate"],
"version": "12.0.2.0.0",
"depends": ["partner_contact_birthdate"],
"author": "Coop IT Easy SCRLfs",
"category": "Cooperative management",
"website": "www.coopiteasy.be",
"website": "https://www.coopiteasy.be",
"license": "AGPL-3",
"summary": "This module computes the age of the partner.",
"data": ["view/partner_view.xml"],

18
partner_age/view/partner_view.xml

@ -1,10 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2020 Coop IT Easy
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="view_partner_from_age" model="ir.ui.view">
<field name="name">res.partner.form.age</field>
<field name="model">res.partner</field>
<field name="inherit_id"
ref="easy_my_coop.view_partner_form_easy_my_coop"/>
ref="partner_contact_birthdate.view_personal_information_birthdate_date"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='birthdate_date']" position='after'>
<field name="age"
@ -12,16 +16,4 @@
</xpath>
</field>
</record>
<record id="view_partner_tree_age" model="ir.ui.view">
<field name="name">res.partner.tree.easy_my_coop</field>
<field name="model">res.partner</field>
<field name="inherit_id"
ref="easy_my_coop.view_partner_tree_easy_my_coop"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='cooperator_type']" position='after'>
<field name="age"/>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save