-
-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MIG] Migration partner_contact_birthdate partner_contact_gender part… #315
Merged
pedrobaeza
merged 9 commits into
OCA:10.0
from
cvinh:10.0-migrate-partner-contact-birthdate
Nov 12, 2016
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e404fde
[MIG] Migration partner_contact_birthdate partner_contact_gender part…
e569495
[IMP] Add French Translation to partner_contact_gender
57fc924
[FIX] Fix coveralls
50c8791
[FIX] Use post_init_hook and minor fixes with author
577b167
[FIX] minor fixes with author
ba3ba21
[FIX] syntax fix
2123b9b
[FIX] forgot to add hooks.py in Git
9aac66f
[FIX] add licence in __manifest__.py
0fabd4a
[FIX] partner_contact_birthdate: Fix author
pedrobaeza File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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> |
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 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 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,19 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<data> | ||
|
||
<record id="view_personal_information_gender" model="ir.ui.view"> | ||
<field name="name">Partner gender: personal info</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="//page[@name='personal_information_page']/group[@name='personal_information_group']"> | ||
<field name='gender'/> | ||
</xpath> | ||
</data> | ||
</field> | ||
</record> | ||
|
||
</data> | ||
<record id="view_personal_information_gender" model="ir.ui.view"> | ||
<field name="name">Partner gender: personal info</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="//page[@name='personal_information_page']/group[@name='personal_information_group']"> | ||
<field name='gender'/> | ||
</xpath> | ||
</data> | ||
</field> | ||
</record> | ||
</odoo> |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be "Jairo Llopis, Tecnativa, Odoo Community Association (OCA)" ?