diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index 7b01459bea5..e94a60a545c 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -1620,7 +1620,7 @@ class res_partner(models.Model): _inherit = 'res.partner' invoice_ids = fields.One2many('account.invoice', 'partner_id', string='Invoices', - readonly=True) + readonly=True, copy=False) def _find_accounting_partner(self, partner): ''' diff --git a/addons/l10n_br/account_view.xml b/addons/l10n_br/account_view.xml index 4eaffd3e27a..0dd246eb3e8 100644 --- a/addons/l10n_br/account_view.xml +++ b/addons/l10n_br/account_view.xml @@ -34,14 +34,14 @@ - + - - - + + + @@ -52,14 +52,14 @@ - + - - - + + + diff --git a/addons/marketing_campaign/__openerp__.py b/addons/marketing_campaign/__openerp__.py index 8d621a8e76d..57891bf578b 100644 --- a/addons/marketing_campaign/__openerp__.py +++ b/addons/marketing_campaign/__openerp__.py @@ -40,7 +40,7 @@ The campaigns are dynamic and multi-channels. The process is as follows: send, reports to print and send by email, custom actions * Define input segments that will select the items that should enter the campaign (e.g leads from certain countries.) - * Run you campaign in simulation mode to test it real-time or accelerated, + * Run your campaign in simulation mode to test it real-time or accelerated, and fine-tune it * You may also start the real campaign in manual mode, where each action requires manual validation diff --git a/addons/product/product.py b/addons/product/product.py index 10dae7bb253..d05e6bfe636 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -154,6 +154,7 @@ class product_uom(osv.osv): _defaults = { 'active': 1, 'rounding': 0.01, + 'factor': 1, 'uom_type': 'reference', } @@ -179,10 +180,7 @@ class product_uom(osv.osv): raise osv.except_osv(_('Error!'), _('Conversion from Product UoM %s to Default UoM %s is not possible as they both belong to different Category!.') % (from_unit.name,to_unit.name,)) else: return qty - # First round to the precision of the original unit, so that - # float representation errors do not bias the following ceil() - # e.g. with 1 / (1/12) we could get 12.0000048, ceiling to 13! - amount = float_round(qty/from_unit.factor, precision_rounding=from_unit.rounding) + amount = qty/from_unit.factor if to_unit: amount = amount * to_unit.factor if round: diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml index 02dd5690395..c9e26c56131 100644 --- a/addons/product/product_view.xml +++ b/addons/product/product_view.xml @@ -595,7 +595,7 @@ + 'readonly':[('uom_type','=','bigger')]}"/>