OpenERP::OOM::DynamicUtils
with 'OpenERP::OOM::DynamicUtils'; ... $self->ensure_class_loaded($class); ... $object_data->{$attribute->name} = $self->prepare_attribute_for_send($attribute->type_constraint, $object_data->{$attribute->name});
This role provides a couple of common methods for our OpenERP base classes. It's name is a bit of a misnomer because it just contains a couple of useful functions, rather than a clear separation of concerns.
This method is designed to ensure we have effectively 'use'd the class while ensuring we don't keep reloading it. It is effectively based on code seen in DBIx::Class and various other projects.
This converts dates to strings for sending and wraps up strings in RPC::XML::string objects to prevent numbers from being transmitted as the wrong type.
Copyright (C) 2011 OpusVL
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install OpenERP::OOM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenERP::OOM
CPAN shell
perl -MCPAN -e shell install OpenERP::OOM
For more information on module installation, please visit the detailed CPAN module installation guide.