commit trytond_account_invoice for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package trytond_account_invoice for openSUSE:Factory checked in at 2024-07-02 18:19:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/trytond_account_invoice (Old) and /work/SRC/openSUSE:Factory/.trytond_account_invoice.new.18349 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "trytond_account_invoice" Tue Jul 2 18:19:15 2024 rev:35 rq:1184803 version:6.0.18 Changes: -------- --- /work/SRC/openSUSE:Factory/trytond_account_invoice/trytond_account_invoice.changes 2024-05-07 18:03:55.871657660 +0200 +++ /work/SRC/openSUSE:Factory/.trytond_account_invoice.new.18349/trytond_account_invoice.changes 2024-07-02 18:19:16.813633725 +0200 @@ -1,0 +2,5 @@ +Tue Jul 2 09:11:12 UTC 2024 - Axel Braun <axel.braun@gmx.de> + +- Version 6.0.18 - Bugfix Release + +------------------------------------------------------------------- Old: ---- trytond_account_invoice-6.0.17.tar.gz New: ---- trytond_account_invoice-6.0.18.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ trytond_account_invoice.spec ++++++ --- /var/tmp/diff_new_pack.2f8oh1/_old 2024-07-02 18:19:17.361653779 +0200 +++ /var/tmp/diff_new_pack.2f8oh1/_new 2024-07-02 18:19:17.365653926 +0200 @@ -29,7 +29,7 @@ %define majorver 6.0 Name: trytond_account_invoice -Version: %{majorver}.17 +Version: %{majorver}.18 Release: 0 Summary: The "account_invoice" module for the Tryton ERP system License: GPL-3.0-only ++++++ trytond_account_invoice-6.0.17.tar.gz -> trytond_account_invoice-6.0.18.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_account_invoice-6.0.17/CHANGELOG new/trytond_account_invoice-6.0.18/CHANGELOG --- old/trytond_account_invoice-6.0.17/CHANGELOG 2024-05-01 14:22:55.000000000 +0200 +++ new/trytond_account_invoice-6.0.18/CHANGELOG 2024-06-02 19:09:07.000000000 +0200 @@ -1,4 +1,9 @@ +Version 6.0.18 - 2024-06-02 +--------------------------- +* Bug fixes (see mercurial logs for details) + + Version 6.0.17 - 2024-05-01 --------------------------- * Bug fixes (see mercurial logs for details) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_account_invoice-6.0.17/PKG-INFO new/trytond_account_invoice-6.0.18/PKG-INFO --- old/trytond_account_invoice-6.0.17/PKG-INFO 2024-05-01 14:22:59.143683700 +0200 +++ new/trytond_account_invoice-6.0.18/PKG-INFO 2024-06-02 19:09:10.489941600 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: trytond_account_invoice -Version: 6.0.17 +Version: 6.0.18 Summary: Tryton module for invoicing Home-page: http://www.tryton.org/ Download-URL: http://downloads.tryton.org/6.0/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_account_invoice-6.0.17/invoice.py new/trytond_account_invoice-6.0.18/invoice.py --- old/trytond_account_invoice-6.0.17/invoice.py 2024-04-27 16:27:26.000000000 +0200 +++ new/trytond_account_invoice-6.0.18/invoice.py 2024-05-26 19:49:18.000000000 +0200 @@ -539,9 +539,9 @@ pool = Pool() InvoiceTax = pool.get('account.invoice.tax') - self.untaxed_amount = Decimal('0.0') - self.tax_amount = Decimal('0.0') - self.total_amount = Decimal('0.0') + self.untaxed_amount = Decimal(0) + self.tax_amount = Decimal(0) + self.total_amount = Decimal(0) computed_taxes = {} if self.lines: @@ -553,13 +553,13 @@ if self.currency: return self.currency.is_zero(amount) else: - return amount == Decimal('0.0') + return amount == Decimal(0) tax_keys = [] taxes = list(self.taxes or []) for tax in (self.taxes or []): if tax.manual: - self.tax_amount += tax.amount or Decimal('0.0') + self.tax_amount += tax.amount or Decimal(0) continue key = tax._key if (key not in computed_taxes) or (key in tax_keys): @@ -567,12 +567,12 @@ continue tax_keys.append(key) if not is_zero(computed_taxes[key]['base'] - - (tax.base or Decimal('0.0'))): + - (tax.base or Decimal(0))): self.tax_amount += computed_taxes[key]['amount'] tax.amount = computed_taxes[key]['amount'] tax.base = computed_taxes[key]['base'] else: - self.tax_amount += tax.amount or Decimal('0.0') + self.tax_amount += tax.amount or Decimal(0) for key in computed_taxes: if key not in tax_keys: self.tax_amount += computed_taxes[key]['amount'] @@ -2034,8 +2034,8 @@ if self.type == 'line': currency = (self.invoice.currency if self.invoice else self.currency) - amount = (Decimal(str(self.quantity or '0.0')) - * (self.unit_price or Decimal('0.0'))) + amount = (Decimal(str(self.quantity or 0)) + * (self.unit_price or Decimal(0))) invoice_type = ( self.invoice.type if self.invoice else self.invoice_type) if (invoice_type == 'in' @@ -2050,7 +2050,7 @@ if currency: return currency.round(amount) return amount - return Decimal('0.0') + return Decimal(0) def get_amount(self, name): if self.type == 'line': @@ -2542,11 +2542,11 @@ @staticmethod def default_base(): - return Decimal('0.0') + return Decimal(0) @staticmethod def default_amount(): - return Decimal('0.0') + return Decimal(0) @staticmethod def default_manual(): @@ -2940,7 +2940,7 @@ else: amount = self.amount - self.amount_writeoff = Decimal('0.0') + self.amount_writeoff = Decimal(0) if not self.invoice: return for line in self.lines: @@ -3002,7 +3002,7 @@ amount_invoice = Currency.compute( self.start.currency, self.start.amount, invoice.currency) _, remainder = self.get_reconcile_lines_for_amount(invoice, amount) - if (remainder == Decimal('0.0') + if (remainder == Decimal(0) and amount_invoice <= invoice.amount_to_pay): return 'pay' return 'ask' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_account_invoice-6.0.17/payment_term.py new/trytond_account_invoice-6.0.18/payment_term.py --- old/trytond_account_invoice-6.0.17/payment_term.py 2023-05-17 23:03:30.000000000 +0200 +++ new/trytond_account_invoice-6.0.18/payment_term.py 2024-05-26 19:49:57.000000000 +0200 @@ -56,7 +56,7 @@ # http://pypi.python.org/pypi/BusinessHours/ Date = Pool().get('ir.date') - sign = 1 if amount >= Decimal('0.0') else -1 + sign = 1 if amount >= Decimal(0) else -1 res = [] if date is None: date = Date.today() @@ -66,7 +66,7 @@ value_date = line.get_date(date) if value is None or not value_date: continue - if ((remainder - value) * sign) < Decimal('0.0'): + if ((remainder - value) * sign) < Decimal(0): res.append((value_date, remainder)) break if value: @@ -156,16 +156,16 @@ @fields.depends('type') def on_change_type(self): if self.type != 'fixed': - self.amount = Decimal('0.0') + self.amount = Decimal(0) self.currency = None if self.type not in ('percent', 'percent_on_total'): - self.ratio = Decimal('0.0') - self.divisor = Decimal('0.0') + self.ratio = Decimal(0) + self.divisor = Decimal(0) @fields.depends('ratio') def on_change_ratio(self): if not self.ratio: - self.divisor = Decimal('0.0') + self.divisor = Decimal(0) else: self.divisor = self.round(1 / self.ratio, self.__class__.divisor.digits[1]) @@ -173,7 +173,7 @@ @fields.depends('divisor') def on_change_divisor(self): if not self.divisor: - self.ratio = Decimal('0.0') + self.ratio = Decimal(0) else: self.ratio = self.round(1 / self.divisor, self.__class__.ratio.digits[1]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_account_invoice-6.0.17/tryton.cfg new/trytond_account_invoice-6.0.18/tryton.cfg --- old/trytond_account_invoice-6.0.17/tryton.cfg 2024-04-04 09:52:24.000000000 +0200 +++ new/trytond_account_invoice-6.0.18/tryton.cfg 2024-05-01 14:23:09.000000000 +0200 @@ -1,5 +1,5 @@ [tryton] -version=6.0.17 +version=6.0.18 depends: account account_product diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_account_invoice-6.0.17/trytond_account_invoice.egg-info/PKG-INFO new/trytond_account_invoice-6.0.18/trytond_account_invoice.egg-info/PKG-INFO --- old/trytond_account_invoice-6.0.17/trytond_account_invoice.egg-info/PKG-INFO 2024-05-01 14:22:58.000000000 +0200 +++ new/trytond_account_invoice-6.0.18/trytond_account_invoice.egg-info/PKG-INFO 2024-06-02 19:09:09.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: trytond_account_invoice -Version: 6.0.17 +Version: 6.0.18 Summary: Tryton module for invoicing Home-page: http://www.tryton.org/ Download-URL: http://downloads.tryton.org/6.0/
participants (1)
-
Source-Sync