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

mgmtsystem_audit progress #143

Closed
wants to merge 13 commits into from
Closed

Conversation

naousse
Copy link
Contributor

@naousse naousse commented Jun 24, 2016

No description provided.

'is_conformed': False
}

name = fields.Char('Question', size=300, required=True)
Copy link
Sponsor Member

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

@max3903 max3903 added this to the 9.0 milestone Jun 24, 2016

closing_date = fields.Datetime('Closing Date', readonly=True)

age = fields.Integer('Age', readonly=True, compute='_get_age')
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

_compute_age

@pedrobaeza pedrobaeza mentioned this pull request Jun 24, 2016
30 tasks
@dreispt
Copy link
Sponsor Member

dreispt commented Jul 18, 2016

@naousse can you address my comments please?

@naousse
Copy link
Contributor Author

naousse commented Jul 18, 2016

@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.

@dreispt
Copy link
Sponsor Member

dreispt commented Jul 22, 2016

CI is red

'procedure_id': line.procedure_id.id,
'is_conformed': False,
}, context=context)
})
return {'type': 'ir.actions.act_window_close'}
Copy link
Contributor Author

@naousse naousse Jul 28, 2016

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'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This error is fixed

@naousse
Copy link
Contributor Author

naousse commented Jul 28, 2016

@dreispt, @max3903
Please you can review this now

@@ -20,163 +20,265 @@
##############################################################################

from openerp.tools.translate import _
Copy link
Sponsor Member

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
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

idem

@dreispt
Copy link
Sponsor Member

dreispt commented Jul 28, 2016

@max3903 Idea: can Verification Lists be replaced by standard Surveys?

@max3903
Copy link
Sponsor Member

max3903 commented Jul 28, 2016

@dreispt I think it can, yes.

@dreispt
Copy link
Sponsor Member

dreispt commented Jul 28, 2016

Let's not complicate this PR though: that can go in a future one.
Maybe we should keep the old code to allow printing "legacy" verification lists.

@max3903
Copy link
Sponsor Member

max3903 commented Jul 28, 2016

@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)})
Copy link
Sponsor Member

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()

@max3903
Copy link
Sponsor Member

max3903 commented Jul 29, 2016

@naousse Needs rebase.

@max3903
Copy link
Sponsor Member

max3903 commented Jul 30, 2016

@naousse Few comments:

  • Separate the verification line class in its own file. One class per file.
  • If we delete the audit, we want to remove the verification lines, but keep the procedures. Not sure the ondelete are correct.
  • Audits menu items should be below Nonconformities

In the Verification List report (See attached):

  • Confidentially --> Confidentiality
  • Date value is not aligned with the reference and confidentiality ones
  • Columns content is shifted to the right. Comments column should be empty.

In the demo data:

  • Convert the Strong points and To improve points values into HTML

@naousse
Copy link
Contributor Author

naousse commented Aug 1, 2016

@max3903
Please there are conflicts in this branch. Please how can we solve it. I don't know where they come

@naousse
Copy link
Contributor Author

naousse commented Aug 1, 2016

@max3903
Please maxime, can you explain me this recommendation,
Columns content is shifted to the right. Comments column should be empty
The new report provide the same result as the former.

@max3903
Copy link
Sponsor Member

max3903 commented Aug 1, 2016

Superseeded by #152

@max3903 max3903 closed this Aug 1, 2016
@max3903 max3903 mentioned this pull request Aug 1, 2016
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

3 participants