-
-
Notifications
You must be signed in to change notification settings - Fork 858
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
[ADD] res.partner: Porting partner_street_number module to Odoo 9.0 #207
Conversation
👍 |
<openerp> | ||
<data> | ||
|
||
<template id="assets_backend" name="partner_street_number backend assets" inherit_id="web.assets_backend"> |
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.
this is causing a crash on runbot. Can you double check?
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.
I checked it once again locally on fresh odoo 9 installation and everything looks fine.
Added it in #184 |
Please @DarkoNikolovski could you review this PR?
|
You might need a dependency on module web to solve the error pointed out by @rafaelbn |
Please add the dependency as stated, and we will be able to merge this. |
Ping @DarkoNikolovski, will you work on this PR next days? |
Yeah, I will add the dependency, no problem. Sorry I have missed previous comments on this PR. |
"author": "Therp BV,Odoo Community Association (OCA)", | ||
"website": "https://github.com/oca/partner-contact", | ||
"category": 'Tools', | ||
"depends": [ | ||
'base' | ||
], | ||
'web', |
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.
Why is required install web
?
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.
The placement of the street name and number fields is now tweaked using CSS instead of using inline style, and the css link is inserted in an assets view from the web module.
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.
@moylop260 please could you finish you review? thanks!
Rebuilding runbot for testing |
@@ -0,0 +1,11 @@ | |||
.o_address_street_name { | |||
float: left !important; |
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.
float: left !important; | ||
margin-right: 2% !important; | ||
width: 75% !important; | ||
} |
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.
Fix indentation in this whole file
margin-right: 0% !important; | ||
width: 25% !important; | ||
} | ||
|
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.
Fix EOF
|
||
.o_address_street_number { | ||
margin-right: 0% !important; | ||
width: 25% !important; |
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.
Never use !important
. Use more explicit selectors instead.
@@ -0,0 +1,12 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<openerp> |
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.
odoo
@@ -0,0 +1,12 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<openerp> | |||
<data> |
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.
not needed
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.
Put only <odoo>
tag
position="attributes"> | ||
<attribute name="invisible">1</attribute> | ||
</xpath> | ||
|
||
<xpath expr="//field[@name='child_ids']" position="attributes"> | ||
<attribute name="context">{'default_parent_id': active_id, 'default_street_name': street_name, 'default_street_number': street_number, 'default_street2': street2, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_supplier': supplier, 'default_customer': customer, 'default_use_parent_address': True}</attribute> |
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.
why this?
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.
Please don't remove this
Hi @DarkoNikolovski , thanks for this contribution. Please is it possible to review comments for merging? Let me know thanks! |
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.
Tested in runbot
No description provided.