-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
[IMP] base_location: Updated to v8 syntax and uses. Added filters in som... #81
Conversation
…some views. Added two columns in respective tree views.
What is the purpose of the currency_id? I think in this module (name base_location), this concept doesn't apply. |
} | ||
{ | ||
'name': 'Location management (aka Better ZIP)', | ||
'version': '0.3.2', |
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.
As this is in new API, you can put 1.0 as a major version
OK, changes in a few minutes. |
…van currency_id column on country tree view, enhanced description and manidest, addded README.rst file.
Changes done. |
Because Odoo only parses reStructuredText (although in a .md file), and GitHub will be confused if we put .md. |
Can you check Travis? |
'Alejandro Santana <alejandrosantana@anubia.es>', | ||
], | ||
'summary': '''Enhanced zip/npa management system''', | ||
'description': ''' |
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.
You don't need to put now this key as you have README.rst
The convention about view file names is to have the suffix |
</search> | ||
</field> | ||
</record> | ||
|
||
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 add useless spaces
@pedrobaeza about file name, convention is |
Not exactly, because inside view/views folder you can also put |
OK, I am doing all changes. Regarding the views naming I will stick to "_view.xml" naming and later on we can discuss what naming should be preferred, all right? |
Regarding Travis, there was a trailing space in this module causing flake8 errors. Then, I see some error in another module (first_name). |
@pedrobaeza yep you can also have qweb report in view thus you can add suffix for menu and prefix for report and keep it short with view. No real convention is there thought. In most case you don't even have menu, just views, so I'm for view without suffix. |
@alejandrosantana You might have misread it:
|
'summary': '''Enhanced zip/npa management system''', | ||
'description': ''' | ||
This module introduces a better zip/npa management system. | ||
It enables zip, city, state and country auto-completion on partners and |
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.
Here is the extra space to remove at EOL
@yvaucher Yes, that's the one causing flake8 to fail. Anyway, that is fixed now. One minute and I push the changes. |
…ted fields. Also use @api.one in onchanges. Using now spaces instead of tabs in xml files.
Changes done. Push done. Let's see what Travis has to say. |
Seems Travis is failing with tests in 'partner_firstname'. |
OK, Travis is unrelated, so please make the rest of the changes. Remove also better_zip symlink, because it's deprecated. |
All changes done, except removal of better_zip, which I will do in a minute. |
@pedrobaeza better_zip removed. |
Thanks for the changes! 👍 |
Nice! I liked collaborating! Great way to learn too. |
Error is indeed unrelated thanks 👍 |
@api.onchange('zip_id') | ||
def onchange_zip_id(self): | ||
if self.zip_id: | ||
bzip = self.zip_id[0] |
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.
[0]
is useless, bzip = self.zip_id
will behave exactly the same
1 minor remark, but 👍 |
@guewen Minor thing, but you are right. Already fixed. |
Thanks! |
[IMP] base_location: Updated to v8 syntax and uses. Added filters in som...
...e views. Added two columns in respective tree views.
base_location/partner-contact changes
API
Views
Questions
./base_location/models/partner.py:28:13: E222 multiple spaces after operator