forked from OCA/partner-contact
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] Migration partner_contact_birthdate partner_contact_gender part… (
OCA#315) [MIG] Migration partner_contact_birthdate partner_contact_gender partner_contact_personal_information_page to v10 Signed-off-by: Carmen Bianca Bakker <carmen@coopiteasy.be>
- Loading branch information
Showing
7 changed files
with
40 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2014-2015 Grupo ESOC <www.grupoesoc.es> | ||
# Copyright 2017-Apertoso N.V. (<http://www.apertoso.be>) | ||
# Copyright 2019-2020: Druidoo (<https://www.druidoo.io>) | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
"name": "Contact's birthdate", | ||
"version": "16.0.1.0.0", | ||
"author": "Tecnativa, Odoo Community Association (OCA)", | ||
"version": "10.0.1.0.0", | ||
"author": "Tecnativa," | ||
"Odoo Community Association (OCA)", | ||
"category": "Customer Relationship Management", | ||
"website": "https://github.com/OCA/partner-contact", | ||
"depends": ["partner_contact_personal_information_page"], | ||
"data": ["views/res_partner.xml"], | ||
"website": "https://www.tecnativa.com/", | ||
"depends": [ | ||
"partner_contact_personal_information_page", | ||
], | ||
"data": [ | ||
"views/res_partner.xml", | ||
], | ||
"post_init_hook": "post_init_hook", | ||
"license": "AGPL-3", | ||
"installable": True, | ||
'installable': True, | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from odoo import SUPERUSER_ID | ||
from odoo.api import Environment | ||
|
||
|
||
def post_init_hook(cr, pool): | ||
env = Environment(cr, SUPERUSER_ID, {}) | ||
env['res.partner'].search( | ||
[('birthdate', "!=", False)])._birthdate_inverse() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
© 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. --> | ||
|
||
<odoo> | ||
|
||
<record id="view_personal_information_birthdate_date" model="ir.ui.view"> | ||
<field name="name">Birthdate Date field</field> | ||
<field name="model">res.partner</field> | ||
<field name="inherit_id" ref="partner_contact_personal_information_page.personal_information"/> | ||
<field name="arch" type="xml"> | ||
<data> | ||
<xpath expr="//group[@name='personal_information_group']"> | ||
<field name="birthdate_date"/> | ||
</xpath> | ||
</data> | ||
</field> | ||
</record> | ||
|
||
<odoo> | ||
<record id="view_personal_information_birthdate_date" model="ir.ui.view"> | ||
<field name="name">Birthdate Date field</field> | ||
<field name="model">res.partner</field> | ||
<field name="inherit_id" ref="partner_contact_personal_information_page.personal_information"/> | ||
<field name="arch" type="xml"> | ||
<data> | ||
<xpath expr="//group[@name='personal_information_group']"> | ||
<field name="birthdate_date"/> | ||
</xpath> | ||
</data> | ||
</field> | ||
</record> | ||
</odoo> |