Skip to content
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

Merged
merged 3 commits into from
Jun 8, 2017
Merged

Conversation

luismontalba
Copy link
Member

CRM Sector

This module adds the concept of economic sector for leads and opportunities.

cc @Tecnativa

@yajo yajo added this to the 10.0 milestone Jun 1, 2017
Copy link
Member

@yajo yajo left a 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.

_inherit = 'crm.lead'

sector_id = fields.Many2one(comodel_name='res.partner.sector',
string='Main Sector', oldname='sector')
Copy link
Member

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.

@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 '
Copy link
Member

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.

@luismontalba
Copy link
Member Author

This PR is depending on #424

@yajo
Copy link
Member

yajo commented Jun 2, 2017

#424 does not exist yet...

@luismontalba
Copy link
Member Author

Sorry, it's in another repo:
OCA/partner-contact#424
😄

Copy link
Member

@pedrobaeza pedrobaeza left a 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.

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**>`_.
Copy link
Member

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

Contributors
------------

* Rafael Blasco <rafabn@antiun.com>
Copy link
Member

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

"version": "10.0.1.0.0",
"category": "Customer Relationship Management",
"website": "http://www.antiun.com",
"author": "Antiun Ingeniería, "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switch Antiun to Tecnativa

@@ -0,0 +1,51 @@
# Translation of Odoo Server.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this file

@rafaelbn
Copy link
Member

rafaelbn commented Jun 8, 2017

@luismontalba please review comments! thanks!

@OCA OCA deleted a comment from yajo Jun 8, 2017
@pedrobaeza
Copy link
Member

@rafaelbn please review

Copy link
Member

@rafaelbn rafaelbn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in runbot ! 👍

@pedrobaeza pedrobaeza merged commit 5b16334 into OCA:10.0 Jun 8, 2017
@pedrobaeza pedrobaeza deleted the 10.0-mig-crm_sector branch June 8, 2017 23:19
@pedrobaeza pedrobaeza mentioned this pull request Jun 8, 2017
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants