Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package trytond_purchase for
openSUSE:Factory checked in at 2023-11-13 22:21:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/trytond_purchase (Old)
and /work/SRC/openSUSE:Factory/.trytond_purchase.new.17445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trytond_purchase"
Mon Nov 13 22:21:23 2023 rev:28 rq:1125408 version:6.0.13
Changes:
--------
--- /work/SRC/openSUSE:Factory/trytond_purchase/trytond_purchase.changes
2023-10-19 22:52:31.049743776 +0200
+++
/work/SRC/openSUSE:Factory/.trytond_purchase.new.17445/trytond_purchase.changes
2023-11-13 22:25:03.088738231 +0100
@@ -1,0 +2,5 @@
+Sat Nov 4 10:12:49 UTC 2023 - Axel Braun <[email protected]>
+
+- Version 6.0.13 - Bugfix Release
+
+-------------------------------------------------------------------
Old:
----
trytond_purchase-6.0.12.tar.gz
trytond_purchase-6.0.12.tar.gz.asc
New:
----
trytond_purchase-6.0.13.tar.gz
trytond_purchase-6.0.13.tar.gz.asc
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ trytond_purchase.spec ++++++
--- /var/tmp/diff_new_pack.wGPHGh/_old 2023-11-13 22:25:03.764763122 +0100
+++ /var/tmp/diff_new_pack.wGPHGh/_new 2023-11-13 22:25:03.764763122 +0100
@@ -19,7 +19,7 @@
%define majorver 6.0
Name: trytond_purchase
-Version: %{majorver}.12
+Version: %{majorver}.13
Release: 0
Summary: The "purchase" module for the Tryton ERP system
License: GPL-3.0-only
++++++ trytond_purchase-6.0.12.tar.gz -> trytond_purchase-6.0.13.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/trytond_purchase-6.0.12/CHANGELOG
new/trytond_purchase-6.0.13/CHANGELOG
--- old/trytond_purchase-6.0.12/CHANGELOG 2023-10-05 00:16:49.000000000
+0200
+++ new/trytond_purchase-6.0.13/CHANGELOG 2023-11-03 18:59:40.000000000
+0100
@@ -1,4 +1,9 @@
+Version 6.0.13 - 2023-11-03
+---------------------------
+* Bug fixes (see mercurial logs for details)
+
+
Version 6.0.12 - 2023-10-04
---------------------------
* Bug fixes (see mercurial logs for details)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/trytond_purchase-6.0.12/PKG-INFO
new/trytond_purchase-6.0.13/PKG-INFO
--- old/trytond_purchase-6.0.12/PKG-INFO 2023-10-05 00:16:53.541006000
+0200
+++ new/trytond_purchase-6.0.13/PKG-INFO 2023-11-03 18:59:42.762142200
+0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: trytond_purchase
-Version: 6.0.12
+Version: 6.0.13
Summary: Tryton module for purchase
Home-page: http://www.tryton.org/
Download-URL: http://downloads.tryton.org/6.0/
@@ -51,6 +51,17 @@
Classifier: Topic :: Office/Business :: Financial :: Accounting
Requires-Python: >=3.6
License-File: LICENSE
+Requires-Dist: python-sql>=0.4
+Requires-Dist: trytond_account<6.1,>=6.0
+Requires-Dist: trytond_account_invoice<6.1,>=6.0
+Requires-Dist: trytond_account_invoice_stock<6.1,>=6.0
+Requires-Dist: trytond_account_product<6.1,>=6.0
+Requires-Dist: trytond_company<6.1,>=6.0
+Requires-Dist: trytond_currency<6.1,>=6.0
+Requires-Dist: trytond_party<6.1,>=6.0
+Requires-Dist: trytond_product<6.1,>=6.0
+Requires-Dist: trytond_stock<6.1,>=6.0
+Requires-Dist: trytond<6.1,>=6.0
###############
Purchase Module
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/trytond_purchase-6.0.12/product.py
new/trytond_purchase-6.0.13/product.py
--- old/trytond_purchase-6.0.12/product.py 2023-05-17 23:03:30.000000000
+0200
+++ new/trytond_purchase-6.0.13/product.py 2023-10-30 15:14:55.000000000
+0100
@@ -483,7 +483,7 @@
def default_quantity():
return 0.0
- @fields.depends('product_supplier', '_parent_product_supplier.product')
+ @fields.depends('product_supplier', '_parent_product_supplier.uom')
def on_change_with_uom(self, name=None):
if self.product_supplier and self.product_supplier.uom:
return self.product_supplier.uom.id
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/trytond_purchase-6.0.12/purchase.py
new/trytond_purchase-6.0.13/purchase.py
--- old/trytond_purchase-6.0.12/purchase.py 2023-09-24 11:24:22.000000000
+0200
+++ new/trytond_purchase-6.0.13/purchase.py 2023-10-30 17:52:52.000000000
+0100
@@ -1333,13 +1333,15 @@
and self.product_supplier not in product_suppliers):
self.product_supplier = None
- self.unit_price = self.compute_unit_price()
+ self.unit_price = self.compute_unit_price()
- self.type = 'line'
self.amount = self.on_change_with_amount()
- @fields.depends('product', methods=['_get_tax_rule_pattern'])
+ @fields.depends('type', 'product', methods=['_get_tax_rule_pattern'])
def compute_taxes(self, party):
+ if self.type != 'line':
+ return []
+
taxes = set()
pattern = self._get_tax_rule_pattern()
for tax in self.product.supplier_taxes_used:
@@ -1401,9 +1403,15 @@
if self.unit_price:
self.unit_price = round_price(self.unit_price)
- @fields.depends(methods=['on_change_quantity'])
+ @fields.depends(methods=['on_change_quantity', 'on_change_with_amount'])
def on_change_unit(self):
self.on_change_quantity()
+ self.amount = self.on_change_with_amount()
+
+ @fields.depends(methods=['on_change_quantity', 'on_change_with_amount'])
+ def on_change_taxes(self):
+ self.on_change_quantity()
+ self.amount = self.on_change_with_amount()
@fields.depends('description')
def on_change_with_summary(self, name=None):
@@ -1615,8 +1623,9 @@
if invoice_line.type != 'line':
continue
if invoice_line not in skips:
- quantity += Uom.compute_qty(invoice_line.unit,
- invoice_line.quantity, self.unit)
+ quantity += Uom.compute_qty(
+ invoice_line.unit or self.unit, invoice_line.quantity,
+ self.unit)
return quantity
def _get_invoice_line_moves(self):
@@ -1714,13 +1723,14 @@
moved_quantity *= -1
invoiced_quantity = 0
for invoice_line in self.invoice_lines:
- if (
- (not invoice_line.invoice
- or invoice_line.invoice.state != 'cancelled')
- and self.unit and invoice_line.unit):
- invoiced_quantity += Uom.compute_qty(
- invoice_line.unit, invoice_line.quantity, self.unit,
- round=False)
+ if (not invoice_line.invoice
+ or invoice_line.invoice.state != 'cancelled'):
+ if self.unit:
+ invoiced_quantity += Uom.compute_qty(
+ invoice_line.unit or self.unit, invoice_line.quantity,
+ self.unit, round=False)
+ else:
+ invoiced_quantity += invoice_line.quantity
actual_quantity = max(moved_quantity, invoiced_quantity, key=abs)
if self.unit:
actual_quantity = self.unit.round(actual_quantity)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/trytond_purchase-6.0.12/tests/scenario_purchase_modify_header.rst
new/trytond_purchase-6.0.13/tests/scenario_purchase_modify_header.rst
--- old/trytond_purchase-6.0.12/tests/scenario_purchase_modify_header.rst
2023-05-17 23:03:30.000000000 +0200
+++ new/trytond_purchase-6.0.13/tests/scenario_purchase_modify_header.rst
2023-10-30 15:11:06.000000000 +0100
@@ -81,6 +81,7 @@
>>> purchase_line = purchase.lines.new()
>>> purchase_line.product = product
>>> purchase_line.quantity = 3
+ >>> purchase_line_comment = purchase.lines.new(type='comment')
>>> purchase.save()
>>> purchase.untaxed_amount, purchase.tax_amount, purchase.total_amount
(Decimal('15.00'), Decimal('1.50'), Decimal('16.50'))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/trytond_purchase-6.0.12/tryton.cfg
new/trytond_purchase-6.0.13/tryton.cfg
--- old/trytond_purchase-6.0.12/tryton.cfg 2023-05-17 23:03:30.000000000
+0200
+++ new/trytond_purchase-6.0.13/tryton.cfg 2023-10-05 00:17:01.000000000
+0200
@@ -1,5 +1,5 @@
[tryton]
-version=6.0.12
+version=6.0.13
depends:
account
account_invoice
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/trytond_purchase-6.0.12/trytond_purchase.egg-info/PKG-INFO
new/trytond_purchase-6.0.13/trytond_purchase.egg-info/PKG-INFO
--- old/trytond_purchase-6.0.12/trytond_purchase.egg-info/PKG-INFO
2023-10-05 00:16:52.000000000 +0200
+++ new/trytond_purchase-6.0.13/trytond_purchase.egg-info/PKG-INFO
2023-11-03 18:59:42.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: trytond-purchase
-Version: 6.0.12
+Version: 6.0.13
Summary: Tryton module for purchase
Home-page: http://www.tryton.org/
Download-URL: http://downloads.tryton.org/6.0/
@@ -51,6 +51,17 @@
Classifier: Topic :: Office/Business :: Financial :: Accounting
Requires-Python: >=3.6
License-File: LICENSE
+Requires-Dist: python-sql>=0.4
+Requires-Dist: trytond_account<6.1,>=6.0
+Requires-Dist: trytond_account_invoice<6.1,>=6.0
+Requires-Dist: trytond_account_invoice_stock<6.1,>=6.0
+Requires-Dist: trytond_account_product<6.1,>=6.0
+Requires-Dist: trytond_company<6.1,>=6.0
+Requires-Dist: trytond_currency<6.1,>=6.0
+Requires-Dist: trytond_party<6.1,>=6.0
+Requires-Dist: trytond_product<6.1,>=6.0
+Requires-Dist: trytond_stock<6.1,>=6.0
+Requires-Dist: trytond<6.1,>=6.0
###############
Purchase Module