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

[ADD][8.0] sale_service_project: New module. #226

Merged
merged 31 commits into from
Feb 23, 2016
Merged

[ADD][8.0] sale_service_project: New module. #226

merged 31 commits into from
Feb 23, 2016

Conversation

sergio-teruel
Copy link
Contributor

Create project and tasks with works and materials from sale orders

@oca-clabot
Copy link

Hey @sergio-incaser, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/website.cla
Here is a list of the users:

  • Sergio Teruel (no github login found)

Appreciation of efforts,
OCA CLAbot

'wizard/product_price_service_view.xml',
],
'author': 'Incaser Informatica S.L., '
'Antiun Ingeniería S.L., '
Copy link
Member

Choose a reason for hiding this comment

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

Change order

@rafaelbn
Copy link
Member

  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3119405-226-9cfbaf/openerp/addons/base/module/module.py", line 393, in state_update
    raise orm.except_orm(_('Error'), _("You try to install module '%s' that depends on module '%s'.\nBut the latter module is not available in your system.") % (module.name, dep.name,))
except_orm: ('Error', u"You try to install module 'sale_service_project' that depends on module 'project_task_materials'.\nBut the latter module is not available in your system.")

@rafaelbn
Copy link
Member

Please rebase @sergio-incaser

@rafaelbn
Copy link
Member

ping @sergio-incaser please rebase for testing, thanks

@rafaelbn rafaelbn added this to the 8.0 milestone Dec 9, 2015
@rafaelbn rafaelbn self-assigned this Dec 9, 2015
@rafaelbn
Copy link
Member

rafaelbn commented Dec 9, 2015

Please @sergio-incaser , rebase and review if runbot fails, thanks!

Sale Service Project
====================

This module was written to extends the functionality of sale workflow
Copy link
Member

Choose a reason for hiding this comment

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

"This module extends..."

@yajo
Copy link
Member

yajo commented Dec 10, 2015

Tested in localhost, it seems to work fine, but please fix those comments above.

@rafaelbn
Copy link
Member

As commented today we must fix:

  • contract in sale order is parent of new proyect with task of sale order
  • in the analytic account associated with the proyect of sale order there is no cost of material, onyl units

@rafaelbn
Copy link
Member

Hi @carlos-incaser @sergio-incaser runbot fails

    openerp.service.server:942 preload_registries

Failed to initialize database `3137323-226-8be756-all`.
Traceback (most recent call last):
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3137323-226-8be756/openerp/service/server.py", line 929, in preload_registries
    registry = RegistryManager.new(dbname, update_module=update_module)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3137323-226-8be756/openerp/modules/registry.py", line 370, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3137323-226-8be756/openerp/modules/loading.py", line 319, in load_modules
    modobj.button_install(cr, SUPERUSER_ID, ids)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3137323-226-8be756/openerp/api.py", line 256, in wrapper
    return old_api(self, *args, **kwargs)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3137323-226-8be756/openerp/addons/base/module/module.py", line 414, in button_install
    self.state_update(cr, uid, ids, 'to install', ['uninstalled'], context=context)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3137323-226-8be756/openerp/api.py", line 256, in wrapper
    return old_api(self, *args, **kwargs)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3137323-226-8be756/openerp/api.py", line 387, in old_api
    result = method(recs, *args, **kwargs)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3137323-226-8be756/openerp/addons/base/module/module.py", line 393, in state_update
    raise orm.except_orm(_('Error'), _("You try to install module '%s' that depends on module '%s'.\nBut the latter module is not available in your system.") % (module.name, dep.name,))
except_orm: ('Error', u"You try to install module 'sale_service_project' that depends on module 'project_task_materials'.\nBut the latter module is not available in your system.")

all_inv = False
task.analytic_line_ids = lines
task.invoice_ids = invoice_ids
task.invoice_exists = invoice_ids and True or False
Copy link
Member

Choose a reason for hiding this comment

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

Do you mean bool(invoice_ids)?

Copy link
Contributor

Choose a reason for hiding this comment

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

Exactly, thanks

@yajo
Copy link
Member

yajo commented Feb 12, 2016

Code reviewed, but I see lots of functionality added and no new comments in README, code or PR. Maybe this is just WIP or bug fixing, but otherwise please explain yourself when publishing changes so we reviewers know what to review.

@carlosdauden
Copy link
Contributor

At this time the module is WIP.
What I should do for that someone with permissions adds the WIP label?

@yajo
Copy link
Member

yajo commented Feb 15, 2016

You can also add [WIP] to the title. In such case, please someone remove needs review. Thanks for clarifying, I'll wait to review.

@rafaelbn
Copy link
Member

Hi, thanks! Tested locally 👍 we must check travis.

====================
Sale Service Project
====================

Copy link
Member

Choose a reason for hiding this comment

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

This module helps you to manage task created from sales order, let you choose if you wants to invoice from sale order or from task, and helps you to control with sale order must be invoiced or not depending if the task have been done or not.

@carlosdauden
Copy link
Contributor

Travis fails in sale_properties_dynamic_fields module.
Can I do something or this error isn't related with my module?

@rafaelbn
Copy link
Member

cc @pedrobaeza

@pedrobaeza
Copy link
Member

This PR is supposed to fix Travis: #266

@rafaelbn
Copy link
Member

OK, I merge as this module has been reviewed technically and functionally and all comments and fixed have been apply.

rafaelbn added a commit that referenced this pull request Feb 23, 2016
[ADD][8.0] sale_service_project: New module.
@rafaelbn rafaelbn merged commit 181d953 into OCA:8.0 Feb 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet