-
-
Notifications
You must be signed in to change notification settings - Fork 781
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
[MIG] project_task_material_stock: Migration to 10.0 #288
[MIG] project_task_material_stock: Migration to 10.0 #288
Conversation
e687c63
to
9140838
Compare
Please @cubells review travis:
|
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:
- Go to a task -> Edit -> go to tab materials in the task and try to add materiala -> It doesn't works
Please review
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.
------------ | ||
|
||
* Rafael Blasco <rafabn@antiun.com> | ||
* Pedro M. Baeza <pedro.baeza@serviciosbaeza.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.
|
||
* Rafael Blasco <rafabn@antiun.com> | ||
* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com> | ||
* Carlos Dauden <carlos@incaser.es> |
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.
* Rafael Blasco <rafabn@antiun.com> | ||
* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com> | ||
* Carlos Dauden <carlos@incaser.es> | ||
* Sergio Teruel <sergio@incaser.es> |
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.
@rafaelbn fixed! |
7eceb7a
to
0859aff
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.
Functionally tested 👍
Travis still fails, please review
Thanks!
@rafaelbn : |
I see, in #275 . Maybe is useful to ping @damdam-s @gurneyalex or @guewen to notice about travis error related to About this PR, as said 👍 |
65e864b
to
e863b2c
Compare
@rafaelbn the error is not caused by project_timesheet_currency (Travis is green on 10.0 branch of this project). This is a classic error which happens when in the repo you have 2 unrelated modules mod_a and mod_b. mod_b introduces a new required field on a model used by mod_a (e.g. security_lead on res.company, which in the current case is introduced by the dependency on sale_stock). mod_a does not depend on mod_b so the tests of mod_a may be run by travis before mod_b and its dependencies are loaded. However the MQT scripts have preinstalled the dependencies of all modules in the repository (in our case sale_stock). This means the new column is in database, with a NOT NULL constraint. But the default value is not provided when the record is created because sale_stock is not loaded in memory yet => broken CI. Ways out of this:
I'm fine with the last two options, provided the change is made as part of this PR. |
Thanks for the explanation @gurneyalex. @cubells Please use method 3 in the tests of this module. |
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.
Plus the change in the test
#. If you are a project manager, go to Project > Configuration > Stages and | ||
check option 'Consume Material' in Task Stage to generate a stock move when | ||
the task is in that stage. | ||
#. Go to Project -> Configuration - > Settings and enable option |
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.
Is this needed on 10.0?
===== | ||
|
||
#. Go to a task, edit, and add materials to be consumed on tab "Materials". | ||
#. Move task to an stage on consume material are activated and moves 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.
s/on consume material are/where "Consume material" check is
"record products spent in a Task", | ||
"version": "10.0.1.0.0", | ||
"category": "Project Management", | ||
"author": "Antiun Ingeniería S.L.," |
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 Antiun
"Tecnativa, " | ||
"Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"application": False, |
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.
Add 'website' key and you can remove this one.
3b7bbf5
to
d15f05a
Compare
@pedrobaeza There is a new commit, can you check? |
* Singleton unlink tasks * Several suggestions * PEP8 * Warning if invoiced lines and move to not consume stage
d15f05a
to
314f44c
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.
I have rebased the branch and everything is alright, so I merge.
cc @Tecnativa