-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
mgmtsystem_audit progress #143
Conversation
'is_conformed': False | ||
} | ||
|
||
name = fields.Char('Question', size=300, required=True) |
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 size from char fields
|
||
closing_date = fields.Datetime('Closing Date', readonly=True) | ||
|
||
age = fields.Integer('Age', readonly=True, compute='_get_age') |
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.
_compute_age
@naousse can you address my comments please? |
@DreiPst i Will do it. I'm fixing some problem on report. Please there is special version of wkhtmltopdf I can use to work on reports. I tested many but the output is not good. |
CI is red |
'procedure_id': line.procedure_id.id, | ||
'is_conformed': False, | ||
}, context=context) | ||
}) | ||
return {'type': 'ir.actions.act_window_close'} |
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.
@dreispt
Please , here is the model of a wizard inside this module that i migrate, it is not working and i don't know what's wrong. Please i want you to check if you can figure out what is not working.
That's the error i have
File "/home/odoo/odoo-dev/odoo/openerp/api.py", line 382, in old_api
return downgrade(recs, result, _args, *_kwargs)
File "/home/odoo/odoo-dev/odoo/openerp/api.py", line 273, in
return lambda self, _args, *_kwargs: downgrade(args[0])
File "/home/odoo/odoo-dev/odoo/openerp/models.py", line 4954, in
@api.returns('self', lambda value: value.id)
AttributeError: 'dict' object has no attribute 'id'
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.
This error is fixed
@@ -20,163 +20,265 @@ | |||
############################################################################## | |||
|
|||
from openerp.tools.translate import _ |
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.
from openerp import _
for id in self.line_ids: | ||
number = number + 1 | ||
self.number_of_questions_in_verification_list = number | ||
return number |
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.
idem
@max3903 Idea: can Verification Lists be replaced by standard Surveys? |
@dreispt I think it can, yes. |
Let's not complicate this PR though: that can go in a future one. |
@dreispt Let's keep this idea out of the scope and in an issue ;) |
return self.write({'state': 'done', | ||
'closing_date': time.strftime(DATETIME_FORMAT), | ||
'number_of_days_to_close': number_of_days_to_close}) | ||
'closing_date': time.strftime(DATETIME_FORMAT)}) |
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 best to use fields.Datetime.now()
@naousse Needs rebase. |
@naousse Few comments:
In the Verification List report (See attached):
In the demo data:
|
@max3903 |
@max3903 |
Superseeded by #152 |
No description provided.