lp://staging/~joyza/+junk/oa_val
- Get this branch:
- bzr branch lp://staging/~joyza/+junk/oa_val
Branch information
- Owner:
- Joyza Carrasquero
- Status:
- Development
Recent revisions
- 51. By Joyza Carrasquero
-
Exercise 6 - Define a Dashboard
Define a dashboard containing the graph view you created, the sessions calendar
view and a list view of the courses (switchable to a form view). This dashboard
should be available through a menuitem in the menu, and automatically displayed
in the web client when the OpenAcademy main menu is selected.Note:
The available styles are “1”, “1-1”, “2-1”, “1-2”, “1-1-1”. The numbers
represent the colspan of each column. - 50. By Joyza Carrasquero
-
------------- Thise 1 - Translate a module
Choose a second language for your OpenERP installation. Translate your module
using the facilities provided by OpenERP.Tip:
The GNU gettext format (Portable Object) used by OpenERP is integrated into
LaunchPad, making it an online collaborative translation platform.Tip:
By default OpenERP’s POT export only extracts labels inside XML files or inside
field definitions in Python code, but any Python string can be translated this
way by surrounding it with the tools.translate._ method (e.g. _(‘Label’) )c line and the following will be ignored --------------added:
openacademy/i18n/
openacademy/i18n/es. mo
openacademy/i18n/es. po - 49. By Joyza Carrasquero
-
Extra Exercise - Wizard on multiple records
Make the wizard able to add attendees to several sessions at once. - 48. By Joyza Carrasquero
-
Exercise 5 - Bind the wizard to the context bar
Bind the wizard to the context bar of the session model. Hint: use the
argument “context” to define the current session as default value for the field
“session_id” in the wizard.Note:
The field “key2” defines a kind of action category. Its possible values are:
“client_action_ multi” (typically for wizards), “client_ print_multi” (typically
for reports), and “client_action_ relate” (typically for related views). - 47. By Joyza Carrasquero
-
Exercise 4 - Create methods
Create the method action_add_attendee in your class CreateAttendeeWizard,
implement it, and add a button in the form view to call it. Add also a button
“Cancel” that closes the wizard window.Note:
Creating attendees this way does not trigger the workflow of sessions. This is
because the session record is not explicitly “touched”. You should either “wake
up” the session record explicitly, or write on the session record. - 46. By Joyza Carrasquero
-
Exercise 4 - Create methods
Create the method action_add_attendee in your class CreateAttendeeWizard,
implement it, and add a button in the form view to call it. Add also a button
“Cancel” that closes the wizard window.Note:
In order to close the window at the end of the method, you can either return
the empty dictionary {}, or explicitly return a client action to close the
window {‘type’: ‘ir.actions.act_window. close’} . - 45. By Joyza Carrasquero
-
Exercise 2 - Make the wizard available through a menuitem
Create a menuitem and the necessary action to use the wizard.Exercise 3 - Customise the form view
Customise the form view in order to show all the fields of the class.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)