Browse Source

[FIX]: Refund INV Fix

pull/45/head
SHEREEF PT 8 years ago
parent
commit
52f3017ef1
  1. 2
      round_off_invoices/__manifest__.py
  2. 3
      round_off_invoices/models/config.py

2
round_off_invoices/__manifest__.py

@ -23,7 +23,7 @@
{
'name': 'Round Off Invoice Amount',
'version': '10.0.2.0.0',
'version': '10.0.1.0.0',
'summary': 'Allows Rounding on Invoice Amount',
'description': 'Invoice amount is rounded to their nearest digits excluding the decimal part',
'category': 'Accounting',

3
round_off_invoices/models/config.py

@ -49,7 +49,8 @@ class AccountRoundOff(models.Model):
def get_round_active(self):
ir_values = self.env['ir.values']
self.round_active = ir_values.get_default('account.config.settings', 'round_off')
for i in self:
i.round_active = ir_values.get_default('account.config.settings', 'round_off')
@api.one
@api.depends('invoice_line_ids.price_subtotal', 'tax_line_ids.amount', 'currency_id', 'company_id',

Loading…
Cancel
Save