Merge lp://staging/~ingenieria-adhoc/aeroo/openerp6.1.x into lp://staging/aeroo/openerp6.1.x

Proposed by Damián Soriano
Status: Needs review
Proposed branch: lp://staging/~ingenieria-adhoc/aeroo/openerp6.1.x
Merge into: lp://staging/aeroo/openerp6.1.x
Diff against target: 47 lines (+17/-2)
2 files modified
report_aeroo/ExtraFunctions.py (+16/-1)
report_aeroo/__init__.py (+1/-1)
To merge this branch: bzr merge lp://staging/~ingenieria-adhoc/aeroo/openerp6.1.x
Reviewer Review Type Date Requested Status
Aeroo Reports Team Pending
Review via email: mp+111468@code.staging.launchpad.net

Description of the change

Adds to function _asimage in ExtraFunctions.py a parameter 'hold_ratio' with default value to False that flags if the image ratio should be preserved or not when rendering the image in the document.

The parameter is set to False for backwards compatibility. The function declaration end like this:

def _asimage(self, field_value, rotate=None, size_x=None, size_y=None, uom='px', hold_ratio=False):

To post a comment you must log in.

Unmerged revisions

3. By Damián Soriano

Add to function asimage() the possibility to maintain the image ratio with an extra parameter

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches