-
-
Notifications
You must be signed in to change notification settings - Fork 408
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
[10.0][MIG] crm_sector #153
Conversation
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.
Code review OK, with just some comments, although until https://travis-ci.org/OCA/crm/jobs/237981808#L698 is merged I will mark as WIP.
crm_sector/models/crm_lead.py
Outdated
_inherit = 'crm.lead' | ||
|
||
sector_id = fields.Many2one(comodel_name='res.partner.sector', | ||
string='Main Sector', oldname='sector') |
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.
Oldname was there in v9? If so, you can remove it.
crm_sector/models/crm_lead.py
Outdated
@api.constrains('sector_id', 'secondary_sector_ids') | ||
def _check_sectors(self): | ||
if self.sector_id in self.secondary_sector_ids: | ||
raise exceptions.Warning(_('The secondary sectors must be ' |
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.
It's UserError
now AFAIK.
This PR is depending on #424 |
#424 does not exist yet... |
Sorry, it's in another repo: |
c486621
to
f3d613e
Compare
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.
Remove also .gitkeep file.
crm_sector/README.rst
Outdated
Bugs are tracked on `GitHub Issues <https://github.com/OCA/crm/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback | ||
`here <https://github.com/OCA/crm/issues/new?body=module:%20crm_sector%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. |
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.
Use short version from template (that doesn't contain also 8.0 in the version). See https://raw.githubusercontent.com/OCA/maintainer-tools/master/template/module/README.rst
crm_sector/README.rst
Outdated
Contributors | ||
------------ | ||
|
||
* Rafael Blasco <rafabn@antiun.com> |
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.
Switch these 2 to current Tecnativa mails
crm_sector/__manifest__.py
Outdated
"version": "10.0.1.0.0", | ||
"category": "Customer Relationship Management", | ||
"website": "http://www.antiun.com", | ||
"author": "Antiun Ingeniería, " |
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.
Switch Antiun
to Tecnativa
crm_sector/i18n/crm_sector.pot
Outdated
@@ -0,0 +1,51 @@ | |||
# Translation of Odoo Server. |
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.
Remove this file
@luismontalba please review comments! thanks! |
@rafaelbn please review |
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 ! 👍
10fca50
to
bf023e8
Compare
CRM Sector
This module adds the concept of economic sector for leads and opportunities.
cc @Tecnativa