adapt modules to 2.9

This commit is contained in:
?ngel ?lvarez Serra 2013-09-25 17:34:19 +02:00
parent c582538c97
commit 6cebd20eaf
5 changed files with 1173 additions and 0 deletions

1105
issue31_157.diff Normal file

File diff suppressed because it is too large Load Diff

11
sale_discount.partch Normal file
View File

@ -0,0 +1,11 @@
--- a/modules/sale_discount/sale.py
+++ b/modules/sale_discount/sale.py
@@ -35,7 +35,7 @@ class Sale:
})
return shipments
- def get_tax_amount(self, name):
+ def get_tax_amount(self):
'''
Get taxes unit_price - discount
'''

3
series
View File

@ -1 +1,4 @@
issue001_party_event_python_sql
sale_discount.partch
stock_valued.diff
stock_valued_discount.patch

36
stock_valued.diff Normal file
View File

@ -0,0 +1,36 @@
--- a/modules/stock_valued/shipment.py
+++ b/modules/stock_valued/shipment.py
@@ -1,5 +1,5 @@
#This file is part stock_valued module for Tryton.
-#The COPYRIGHT file at the top level of this repository contains
+#The COPYRIGHT file at the top level of this repository contains
#the full copyright notices and license terms.
from trytond.model import fields
@@ -62,7 +62,7 @@ class ShipmentOut:
context['language'] = self.customer.lang.code
return context
- def get_untaxed_amount(self, name):
+ def get_untaxed_amount(self):
'''
Compute the untaxed amount for each ShipmentOut
'''
@@ -73,7 +73,7 @@ class ShipmentOut:
amount = sum((m.amount for m in self.outgoing_moves), Decimal(0))
return Currency.round(self.company.currency, amount)
- def get_tax_amount(self, name):
+ def get_tax_amount(self):
'''
Compute tax amount for each ShipmentOut
'''
@@ -102,7 +102,7 @@ class ShipmentOut:
for key in taxes), Decimal(0))
return Currency.round(self.company.currency, amount)
- def get_total_amount(self, name):
+ def get_total_amount(self):
'''
Return the total amount of each ShipmentOut
'''

View File

@ -0,0 +1,18 @@
--- a/modules/stock_valued_discount/shipment.py
+++ b/modules/stock_valued_discount/shipment.py
@@ -1,5 +1,5 @@
#This file is part stock_valued_discount module for Tryton.
-#The COPYRIGHT file at the top level of this repository contains
+#The COPYRIGHT file at the top level of this repository contains
#the full copyright notices and license terms.
from trytond.transaction import Transaction
from trytond.pool import Pool, PoolMeta
@@ -13,7 +13,7 @@ class ShipmentOut:
"Customer Shipment"
__name__ = 'stock.shipment.out'
- def get_tax_amount(self, name):
+ def get_tax_amount(self):
'''
Compute tax amount for each ShipmentOut
'''