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

[8.0][crm_phonecall_summary_predefined] Restricted list of possible summaries for phone calls #78

Merged
merged 1 commit into from
Feb 29, 2016
Merged

[8.0][crm_phonecall_summary_predefined] Restricted list of possible summaries for phone calls #78

merged 1 commit into from
Feb 29, 2016

Conversation

yajo
Copy link
Member

@yajo yajo commented Feb 19, 2016

This module fills the gap of phone marketing companies where phone call summaries can only belong to a limited amount of possibilities.

@rafaelbn

@rafaelbn
Copy link
Member

I cannot test it, runbot fails. After trying to rebuild it is killed in testing stage

@yajo
Copy link
Member Author

yajo commented Feb 22, 2016

I don't know what could it be. Maybe @gurneyalex can help?

@rafaelbn
Copy link
Member

Thansk. Tested, you miss field categ_id in crm.phonecall list view. Please add it, it another select field related to this module and functionality. Thanks

@yajo
Copy link
Member Author

yajo commented Feb 24, 2016

Yes @rafaelbn, thanks. It will land in a new addon ASAP.

@rafaelbn
Copy link
Member

Please review runbot errors

2016-02-24 15:44:57     ERROR   server  openerp.sql_db:241 execute

bad query: ALTER TABLE "crm_phonecall" ALTER COLUMN "summary_id" SET NOT NULL
Traceback (most recent call last):
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3142507-78-6d97f9/openerp/sql_db.py", line 234, in execute
    res = self._obj.execute(query, params)
IntegrityError: column "summary_id" contains null values

2016-02-24 15:44:57     WARNING     server  openerp.models:2674 _auto_init

WARNING: unable to set column summary_id of table crm_phonecall not null !
Try to re-run: openerp-server --update=module
If it doesn't work, update records and execute manually:
ALTER TABLE crm_phonecall ALTER COLUMN summary_id SET NOT NULL
Traceback (most recent call last):
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3142507-78-6d97f9/openerp/models.py", line 2666, in _auto_init
    cr.execute('ALTER TABLE "%s" ALTER COLUMN "%s" SET NOT NULL' % (self._table, k))
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3142507-78-6d97f9/openerp/sql_db.py", line 158, in wrapper
    return f(self, *args, **kwargs)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3142507-78-6d97f9/openerp/sql_db.py", line 234, in execute
    res = self._obj.execute(query, params)
IntegrityError: column "summary_id" contains null values

@yajo
Copy link
Member Author

yajo commented Feb 24, 2016

@rafaelbn Thanks, a very interesting bug to fix.

@yajo
Copy link
Member Author

yajo commented Feb 25, 2016

Travis fixed. Runbot's failure fixed in OCA/partner-contact#250

@pedrobaeza
Copy link
Member

I prefer the module name crm_phonecall_predefined_summary

Configuration
=============

To configure this module, you need to:
Copy link
Member

Choose a reason for hiding this comment

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

To configure the possible summary options, go...

@pedrobaeza
Copy link
Member

Don't create a .empty file in i18n: put the es.po or don't put anything.

<field name="inherit_id" ref="crm.crm_case_inbound_phone_tree_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="attributes">
<attribute name="name">summary_id</attribute>
Copy link
Member

Choose a reason for hiding this comment

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

Don't replace, but hide the other field. This is a very bad practice, because other modules can inherit the view referencing this field.

@yajo
Copy link
Member Author

yajo commented Feb 26, 2016

Fixed all. Renamed to crm_phonecall_summary_predefined, seems better IMHO. Is it ok?

…ummaries for phone calls

This module fills the gap of phone marketing companies where phone call summaries can only belong to a limited amount of possibilities.
@yajo yajo changed the title [8.0][crm_phonecall_summary_restrict] Restricted list of possible summaries for phone calls [8.0][crm_phonecall_summary_predefined] Restricted list of possible summaries for phone calls Feb 26, 2016
@rafaelbn
Copy link
Member

Name for me is OK: crm_phonecall_summary_predefined.

@rafaelbn
Copy link
Member

Tested functionally and 👍 thanks!

@pedrobaeza
Copy link
Member

👍

@sergio-teruel
Copy link
Contributor

Tested.. 👍

pedrobaeza added a commit that referenced this pull request Feb 29, 2016
[8.0][crm_phonecall_summary_predefined] Restricted list of possible summaries for phone calls
@pedrobaeza pedrobaeza merged commit 697cd13 into OCA:8.0 Feb 29, 2016
@yajo yajo deleted the crm_phonecall_summary_restrict branch February 29, 2016 16:02
@rafaelbn
Copy link
Member

rafaelbn commented Mar 4, 2016

Hi @yajo we miss here in this module to add summary in crm.phonecall.report. we must make an IMP

2016-03-04_13-54-48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants