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
- Loading branch information
1 parent
ce635db
commit 9268e56
Showing
6 changed files
with
31 additions
and
30 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
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> |