← Back to team overview

openerp-india team mailing list archive

[Bug 1126338] [NEW] [l10n_ca] New tax amount and decimal rounding

 

Public bug reported:

Since the 1st january the TPS tax in Québec are now 9.975%. I've tried to change it in
the l10n_ca module's code but at installation the amount is getting round to 0,099800  %

So I've tried to put this YAML code:

-
  !python {model: decimal.precision}: |
    decimal_id = self.pool.get('decimal.precision').search(cr, uid, [('name', '=', 'Account')])[0]
    self.write(cr, uid, decimal_id, {'digits': 4})

It changes the decimal but the tax are still rounded. I guess it's a parsing order problem but change the position
of the scripts in __openerp__.py have no effect.

Any thought what could solve this?

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1126338

Title:
  [l10n_ca] New tax amount and decimal rounding

Status in OpenERP Addons (modules):
  New

Bug description:
  Since the 1st january the TPS tax in Québec are now 9.975%. I've tried to change it in
  the l10n_ca module's code but at installation the amount is getting round to 0,099800  %

  So I've tried to put this YAML code:

  -
    !python {model: decimal.precision}: |
      decimal_id = self.pool.get('decimal.precision').search(cr, uid, [('name', '=', 'Account')])[0]
      self.write(cr, uid, decimal_id, {'digits': 4})

  It changes the decimal but the tax are still rounded. I guess it's a parsing order problem but change the position
  of the scripts in __openerp__.py have no effect.

  Any thought what could solve this?

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1126338/+subscriptions


Follow ups

References