This commit is contained in:
Bertrand Chenal committed 2008-10-23 17:24:11 +02:00
commit 9979cc06c6
9 files changed
+52 -37

No files matched your search

+4 -3
View File
@@ -1,7 +1,8 @@
#This file is part of Tryton. The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms.
#This file is part of Tryton. The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
{
'name': 'Stock Management',
'version': '0.1',
'version': '0.0.1',
'author': 'B2CK',
'email': 'info@b2ck.com',
'website': 'http://www.tryton.org/',
@@ -10,7 +11,7 @@
'depends': [
'ir',
'workflow',
'relationship',
'party',
'product',
'company',
'currency',
+14 -8
View File
@@ -13,11 +13,11 @@ error,stock.packing.in,0,Incoming Moves must have input location as destination
error,stock.packing.in,0,Inventory Moves must have input location as source location!,Lagerbewegungen müssen einen Lagerort vom Typ eingehend als Herkunft haben!,0
error,stock.packing.in,0,Inventory Moves must have output location as destination location!,Lagerbewegungen müssen einen Lagerort vom Typ ausgehend als Herkunft haben! ,0
error,stock.packing.in,0,Outgoing Moves must have output location as source location!,Ausgehende Bewegungen müssen einen Lagerort vom Typ ausgehend als Herkunft haben! ,0
field,"party.address,delivery",0,Delivery,Lieferadresse,0
field,"party.party,customer_location",0,Customer Location,Lagerort Kunde,0
field,"party.party,supplier_location",0,Supplier Location,Lagerort Lieferant,0
field,"product.product,forecast_quantity",0,Forecast Quantity,Voraussichtliche Menge,0
field,"product.product,quantity",0,Quantity,Menge,0
field,"relationship.address,delivery",0,Delivery,Lieferadresse,0
field,"relationship.party,customer_location",0,Customer Location,Lagerort Kunde,0
field,"relationship.party,supplier_location",0,Supplier Location,Lagerort Lieferant,0
field,"stock.inventory,company",0,Company,Unternehmen,0
field,"stock.inventory,date",0,Date,Datum,0
field,"stock.inventory.line,expected_quantity",0,Expected Quantity,Erwartete Menge,0
@@ -93,8 +93,8 @@ field,"stock.packing.out,reference",0,Reference,Referenz,0
field,"stock.packing.out,state",0,State,Status,0
field,"stock.packing.out,warehouse",0,Warehouse,Warenlager,0
field,"stock.product_stock_date.init,forecast_date",0,At Date,Am,0
help,"relationship.party,customer_location",0,The default destination location when sending products to the party.,Standardbestimmungsort für Sendungen zum Geschäftspartner,0
help,"relationship.party,supplier_location",0,The default source location when receiving products from the party.,Standardbestimmungsort für Sendungen vom Geschäftspartner,0
help,"party.party,customer_location",0,The default destination location when sending products to the party.,Standardbestimmungsort für Sendungen zum Geschäftspartner,0
help,"party.party,supplier_location",0,The default source location when receiving products from the party.,Standardbestimmungsort für Sendungen vom Geschäftspartner,0
help,"stock.location_stock_date.init,forecast_date",0,"Allow to compute expected stock quantities for this date.
* An empty value is an infinite date in the future.
* A date in the past will provide historical values.","Berechnet den erwarteten Lagerbestand für dieses Datum
@@ -153,11 +153,9 @@ model,"ir.ui.menu,name",menu_packing_in_received,Received Supplier packings,Erha
model,"ir.ui.menu,name",menu_packing_in_form,Supplier Packings,Lieferscheine von Lieferanten,0
odt,stock.packing.out,0,Customer Code:,Kundennummer:,0
odt,stock.packing.out,0,Date:,Datum:,0
odt,stock.packing.out,0,Email:,E-Mail:,0
odt,stock.packing.out,0,List,Liste,0
odt,stock.packing.out,0,Packing,Lieferschein,0
odt,stock.packing.out,0,Packing Number:,Lieferscheinnummer:,0
odt,stock.packing.out,0,Phone:,Telefon:,0
odt,stock.packing.out,0,Product,Artikel,0
odt,stock.packing.out,0,Quantity,Menge,0
odt,stock.packing.out,0,Reference:,Referenz,0
@@ -212,26 +210,32 @@ view,stock.move,0,Moves,Bewegungen,0
view,stock.move,0,Set Done,Auf Erledigt setzen,0
view,stock.move,0,Set Draft,Auf Entwurf setzen,0
view,stock.packing.in,0,Cancel,Abbrechen,0
view,stock.packing.in,0,Done,Erledigt,0
view,stock.packing.in,0,Draft,Entwurf,0
view,stock.packing.in,0,Incoming Moves,Eingehende Bewegungen,0
view,stock.packing.in,0,Inventory Moves,Lagerbewegungen,0
view,stock.packing.in,0,Moves,Bewegungen,0
view,stock.packing.in,0,Received,Erhalten,0
view,stock.packing.in,0,Reset to Draft,Auf Entwurf zurücksetzen,0
view,stock.packing.in,0,Set Done,Auf Erledigt setzen,0
view,stock.packing.in,0,Supplier Packing,Lieferschein von Lieferant,0
view,stock.packing.in,0,Supplier Packings,Lieferscheine von Lieferanten,0
view,stock.packing.internal,0,Assign,Zuweisen,0
view,stock.packing.internal,0,Cancel,Abbrechen,0
view,stock.packing.internal,0,Done,Erledigt,0
view,stock.packing.internal,0,Draft,Entwurf,0
view,stock.packing.internal,0,Force Assign,Zuweisung erzwingen,0
view,stock.packing.internal,0,Internal Packing,Interner Lieferschein,0
view,stock.packing.internal,0,Internal Packings,Interne Lieferscheine,0
view,stock.packing.internal,0,Reset to Draft,Auf Entwurf zurücksetzen,0
view,stock.packing.internal,0,Set Done,Auf Erledigt setzen,0
view,stock.packing.internal,0,Set Waiting,Auf Wartend setzen,0
view,stock.packing.internal,0,Waiting,Wartend,0
view,stock.packing.out,0,Assign,Zuweisen,0
view,stock.packing.out,0,Cancel,Abbrechen,0
view,stock.packing.out,0,Customer Packing,Lieferschein an Kunde,0
view,stock.packing.out,0,Customer Packings,Lieferscheine an Kunden,0
view,stock.packing.out,0,Done,Erledigt,0
view,stock.packing.out,0,Draft,Entwurf,0
view,stock.packing.out,0,Force Assign,Zuweisung erzwingen,0
view,stock.packing.out,0,Inventory Moves,Lagerbewegungen,0
view,stock.packing.out,0,Make packing,Lieferung fertigstellen,0
@@ -239,6 +243,8 @@ view,stock.packing.out,0,Outgoing Moves,Ausgehende Bewegungen,0
view,stock.packing.out,0,Reset to Draft,Auf Entwurf zurücksetzen,0
view,stock.packing.out,0,Set Done,Auf Erledigt setzen,0
view,stock.packing.out,0,Set Waiting,Auf Wartend setzen,0
view,stock.packing.out,0,Unpack,Entpackt,0
view,stock.packing.out,0,Waiting,Wartend,0
wizard_button,"stock.location.open,init,end",0,Cancel,Abbrechen,0
wizard_button,"stock.location.open,init,open",0,Open,Öffnen,0
wizard_button,"stock.product.open,init,end",0,Cancel,Abbrechen,0
1 type name res_id src value fuzzy
13 error stock.packing.in 0 Inventory Moves must have input location as source location! Lagerbewegungen müssen einen Lagerort vom Typ eingehend als Herkunft haben! 0
14 error stock.packing.in 0 Inventory Moves must have output location as destination location! Lagerbewegungen müssen einen Lagerort vom Typ ausgehend als Herkunft haben! 0
15 error stock.packing.in 0 Outgoing Moves must have output location as source location! Ausgehende Bewegungen müssen einen Lagerort vom Typ ausgehend als Herkunft haben! 0
16 field party.address,delivery 0 Delivery Lieferadresse 0
17 field party.party,customer_location 0 Customer Location Lagerort Kunde 0
18 field party.party,supplier_location 0 Supplier Location Lagerort Lieferant 0
19 field product.product,forecast_quantity 0 Forecast Quantity Voraussichtliche Menge 0
20 field product.product,quantity 0 Quantity Menge 0
field relationship.address,delivery 0 Delivery Lieferadresse 0
field relationship.party,customer_location 0 Customer Location Lagerort Kunde 0
field relationship.party,supplier_location 0 Supplier Location Lagerort Lieferant 0
21 field stock.inventory,company 0 Company Unternehmen 0
22 field stock.inventory,date 0 Date Datum 0
23 field stock.inventory.line,expected_quantity 0 Expected Quantity Erwartete Menge 0
93 field stock.packing.out,state 0 State Status 0
94 field stock.packing.out,warehouse 0 Warehouse Warenlager 0
95 field stock.product_stock_date.init,forecast_date 0 At Date Am 0
96 help relationship.party,customer_location party.party,customer_location 0 The default destination location when sending products to the party. Standardbestimmungsort für Sendungen zum Geschäftspartner 0
97 help relationship.party,supplier_location party.party,supplier_location 0 The default source location when receiving products from the party. Standardbestimmungsort für Sendungen vom Geschäftspartner 0
98 help stock.location_stock_date.init,forecast_date 0 Allow to compute expected stock quantities for this date. * An empty value is an infinite date in the future. * A date in the past will provide historical values. Berechnet den erwarteten Lagerbestand für dieses Datum * ein leerer Wert ist ein unbegrenztes Datum in der Zukunft * ein Datum in der Vergangenheit berechnet historische Werte 0
99 help stock.product_stock_date.init,forecast_date 0 Allow to compute expected stock quantities for this date. * An empty value is an infinite date in the future. * A date in the past will provide historical values. Berechnet den erwarteten Lagerbestand für dieses Datum * ein leerer Wert ist ein unbegrenztes Datum in der Zukunft * ein Datum in der Vergangenheit berechnet historische Werte 0
100 model ir.action,name act_packing_out_form_assigned Assigned Customer Packings Zugewiesene Kundenlieferscheine 0
153 odt selection stock.packing.out stock.inventory,state 0 Reference: Done Referenz Erledigt 0
154 selection stock.inventory,state 0 Cancel Open Abbrechen Offen 0
155 selection stock.inventory,state stock.location,type 0 Done Customer Erledigt Kunde 0
selection stock.inventory,state 0 Open Offen 0
156 selection stock.location,type 0 Customer Lost and Found Kunde Nicht zugeordnet 0
157 selection stock.location,type 0 Lost and Found Production Nicht zugeordnet Produktion 0
158 selection stock.location,type 0 Production Storage Produktion Lagerhalle 0
selection stock.location,type 0 Storage Lagerhalle 0
159 selection stock.location,type 0 Supplier Lieferant 0
160 selection stock.location,type 0 Warehouse Warenlager 0
161 selection stock.move,state 0 Assigned Zugewiesen 0
210 view stock.packing.in 0 Supplier Packings Supplier Packing Lieferscheine von Lieferanten Lieferschein von Lieferant 0
211 view stock.packing.internal stock.packing.in 0 Assign Supplier Packings Zuweisen Lieferscheine von Lieferanten 0
212 view stock.packing.internal 0 Cancel Assign Abbrechen Zuweisen 0
213 view stock.packing.internal 0 Cancel Abbrechen 0
214 view stock.packing.internal 0 Done Erledigt 0
215 view stock.packing.internal 0 Force Assign Draft Zuweisung erzwingen Entwurf 0
216 view stock.packing.internal 0 Internal Packing Force Assign Interner Lieferschein Zuweisung erzwingen 0
217 view stock.packing.internal 0 Internal Packings Internal Packing Interne Lieferscheine Interner Lieferschein 0
218 view stock.packing.internal 0 Reset to Draft Internal Packings Auf Entwurf zurücksetzen Interne Lieferscheine 0
219 view stock.packing.internal 0 Set Done Reset to Draft Auf Erledigt setzen Auf Entwurf zurücksetzen 0
view stock.packing.internal 0 Set Waiting Auf Wartend setzen 0
220 view stock.packing.out stock.packing.internal 0 Assign Set Done Zuweisen Auf Erledigt setzen 0
221 view stock.packing.out stock.packing.internal 0 Cancel Set Waiting Abbrechen Auf Wartend setzen 0
222 view stock.packing.out stock.packing.internal 0 Customer Packing Waiting Lieferschein an Kunde Wartend 0
223 view stock.packing.out 0 Customer Packings Assign Lieferscheine an Kunden Zuweisen 0
224 view stock.packing.out 0 Cancel Abbrechen 0
225 view stock.packing.out 0 Customer Packing Lieferschein an Kunde 0
226 view stock.packing.out 0 Force Assign Customer Packings Zuweisung erzwingen Lieferscheine an Kunden 0
227 view stock.packing.out 0 Inventory Moves Done Lagerbewegungen Erledigt 0
228 view stock.packing.out 0 Make packing Draft Lieferung fertigstellen Entwurf 0
229 view stock.packing.out 0 Outgoing Moves Force Assign Ausgehende Bewegungen Zuweisung erzwingen 0
230 view stock.packing.out 0 Reset to Draft Inventory Moves Auf Entwurf zurücksetzen Lagerbewegungen 0
231 view stock.packing.out 0 Set Done Make packing Auf Erledigt setzen Lieferung fertigstellen 0
232 view stock.packing.out 0 Outgoing Moves Ausgehende Bewegungen 0
233 view stock.packing.out 0 Set Waiting Reset to Draft Auf Wartend setzen Auf Entwurf zurücksetzen 0
234 wizard_button view stock.location.open,init,end stock.packing.out 0 Cancel Set Done Abbrechen Auf Erledigt setzen 0
235 wizard_button view stock.location.open,init,open stock.packing.out 0 Open Set Waiting Öffnen Auf Wartend setzen 0
236 wizard_button view stock.product.open,init,end stock.packing.out 0 Cancel Unpack Abbrechen Entpackt 0
237 view stock.packing.out 0 Waiting Wartend 0
238 wizard_button stock.location.open,init,end 0 Cancel Abbrechen 0
239 wizard_button stock.product.open,init,open stock.location.open,init,open 0 Open Öffnen 0
240 wizard_button stock.product.open,init,end 0 Cancel Abbrechen 0
241 wizard_button stock.product.open,init,open 0 Open Öffnen 0
243
244
245
246
247
248
249
250
+5 -5
View File
@@ -15,9 +15,9 @@ error,stock.packing.in,0,Inventory Moves must have output location as destinatio
error,stock.packing.in,0,Outgoing Moves must have output location as source location!,Los Movimientos de Salida deben tener tanto lugar de salida como origen!,0
field,"product.product,forecast_quantity",0,Forecast Quantity,Cantidad Pronosticada,0
field,"product.product,quantity",0,Quantity,Cantidad,0
field,"relationship.address,delivery",0,Delivery,Envío,0
field,"relationship.party,customer_location",0,Customer Location,Lugar del Cliente,0
field,"relationship.party,supplier_location",0,Supplier Location,Lugar del Proveedor,0
field,"party.address,delivery",0,Delivery,Envío,0
field,"party.party,customer_location",0,Customer Location,Lugar del Cliente,0
field,"party.party,supplier_location",0,Supplier Location,Lugar del Proveedor,0
field,"stock.inventory,company",0,Company,Compañía,0
field,"stock.inventory,date",0,Date,Fecha,0
field,"stock.inventory.line,expected_quantity",0,Expected Quantity,Cantidad Esperada,0
@@ -93,8 +93,8 @@ field,"stock.packing.out,reference",0,Reference,Referencia,0
field,"stock.packing.out,state",0,State,Estado,0
field,"stock.packing.out,warehouse",0,Warehouse,Depósito,0
field,"stock.product_stock_date.init,forecast_date",0,At Date,En la fecha,0
help,"relationship.party,customer_location",0,The default destination location when sending products to the party.,El lugar predeterminado destino cuando se envian productos al tercero.,0
help,"relationship.party,supplier_location",0,The default source location when receiving products from the party.,El lugar origen predeterminado cuando se reciben productos del tercero.,0
help,"party.party,customer_location",0,The default destination location when sending products to the party.,El lugar predeterminado destino cuando se envian productos al tercero.,0
help,"party.party,supplier_location",0,The default source location when receiving products from the party.,El lugar origen predeterminado cuando se reciben productos del tercero.,0
help,"stock.location_stock_date.init,forecast_date",0,"Allow to compute expected stock quantities for this date.
* An empty value is an infinite date in the future.
* A date in the past will provide historical values.","Permitir calcular el inventario esperado para esta fecha.
1 type name res_id src value fuzzy
15 error stock.packing.in 0 Outgoing Moves must have output location as source location! Los Movimientos de Salida deben tener tanto lugar de salida como origen! 0
16 field product.product,forecast_quantity 0 Forecast Quantity Cantidad Pronosticada 0
17 field product.product,quantity 0 Quantity Cantidad 0
18 field relationship.address,delivery party.address,delivery 0 Delivery Envío 0
19 field relationship.party,customer_location party.party,customer_location 0 Customer Location Lugar del Cliente 0
20 field relationship.party,supplier_location party.party,supplier_location 0 Supplier Location Lugar del Proveedor 0
21 field stock.inventory,company 0 Company Compañía 0
22 field stock.inventory,date 0 Date Fecha 0
23 field stock.inventory.line,expected_quantity 0 Expected Quantity Cantidad Esperada 0
93 field stock.packing.out,state 0 State Estado 0
94 field stock.packing.out,warehouse 0 Warehouse Depósito 0
95 field stock.product_stock_date.init,forecast_date 0 At Date En la fecha 0
96 help relationship.party,customer_location party.party,customer_location 0 The default destination location when sending products to the party. El lugar predeterminado destino cuando se envian productos al tercero. 0
97 help relationship.party,supplier_location party.party,supplier_location 0 The default source location when receiving products from the party. El lugar origen predeterminado cuando se reciben productos del tercero. 0
98 help stock.location_stock_date.init,forecast_date 0 Allow to compute expected stock quantities for this date. * An empty value is an infinite date in the future. * A date in the past will provide historical values. Permitir calcular el inventario esperado para esta fecha. * Un valor vacíoes una fecha infinita en el futuro. * Una fecha en el pasado indicará usar datos históricos. 0
99 help stock.product_stock_date.init,forecast_date 0 Allow to compute expected stock quantities for this date. * An empty value is an infinite date in the future. * A date in the past will provide historical values. Permitir calcular el inventario esperado para esta fecha. * Un valor vacíoes una fecha infinita en el futuro. * Una fecha en el pasado indicará usar datos históricos. 0
100 model ir.action,name act_packing_out_form_assigned Assigned Customer Packings Empaques asignados a Clientes 0
+2 -2
View File
@@ -17,7 +17,7 @@ class Location(OSV):
name = fields.Char("Name", size=None, required=True, states=STATES)
code = fields.Char("Code", size=None, states=STATES, select=1)
active = fields.Boolean('Active', select=1)
address = fields.Many2One("relationship.address", "Address",
address = fields.Many2One("party.address", "Address",
states={
'invisible': "type != 'warehouse'",
'readonly': "not active",
@@ -131,7 +131,7 @@ Location()
class Party(OSV):
_name = 'relationship.party'
_name = 'party.party'
supplier_location = fields.Property(type='many2one',
relation='stock.location', string='Supplier Location',
group_name='Stock Properties', view_load=True,
+4 -3
View File
@@ -1,5 +1,6 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="location_view_form">
@@ -187,14 +188,14 @@
<record model="ir.property" id="property_supplier_location">
<field name="name">supplier_location</field>
<field name="field"
search="[('model.model', '=', 'relationship.party'),
search="[('model.model', '=', 'party.party'),
('name', '=', 'supplier_location')]"/>
<field name="value" eval="'stock.location,' + str(ref('location_supplier'))"/>
</record>
<record model="ir.property" id="property_customer_location">
<field name="name">customer_location</field>
<field name="field"
search="[('model.model', '=', 'relationship.party'),
search="[('model.model', '=', 'party.party'),
('name', '=', 'customer_location')]"/>
<field name="value" eval="'stock.location,' + str(ref('location_customer'))"/>
</record>
+10 -8
View File
@@ -1,4 +1,5 @@
#This file is part of Tryton. The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms.
#This file is part of Tryton. The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
"Packing"
from trytond.osv import fields, OSV
from trytond.netsvc import LocalService
@@ -22,11 +23,11 @@ class PackingIn(OSV):
reference = fields.Char(
"Reference", size=None, select=1,
states={'readonly': "state != 'draft'",})
supplier = fields.Many2One('relationship.party', 'Supplier',
supplier = fields.Many2One('party.party', 'Supplier',
states={
'readonly': "state != 'draft' or bool(incoming_moves)",
}, on_change=['supplier'], required=True)
contact_address = fields.Many2One('relationship.address', 'Contact Address',
contact_address = fields.Many2One('party.address', 'Contact Address',
states={
'readonly': "state != 'draft'",
}, domain="[('party', '=', supplier)]")
@@ -86,7 +87,7 @@ class PackingIn(OSV):
def on_change_supplier(self, cursor, user, ids, values, context=None):
if not values.get('supplier'):
return {}
party_obj = self.pool.get("relationship.party")
party_obj = self.pool.get("party.party")
address_id = party_obj.address_get(cursor, user, values['supplier'],
context=context)
return {'contact_address': address_id}
@@ -274,11 +275,11 @@ class PackingOut(OSV):
states={
'readonly': "state != 'draft'",
})
customer = fields.Many2One('relationship.party', 'Customer', required=True,
customer = fields.Many2One('party.party', 'Customer', required=True,
states={
'readonly': "state != 'draft'",
}, on_change=['customer'])
delivery_address = fields.Many2One('relationship.address',
delivery_address = fields.Many2One('party.address',
'Delivery Address', required=True,
states={
'readonly': "state != 'draft'",
@@ -332,7 +333,7 @@ class PackingOut(OSV):
def on_change_customer(self, cursor, user, ids, values, context=None):
if not values.get('customer'):
return {}
party_obj = self.pool.get("relationship.party")
party_obj = self.pool.get("party.party")
address_id = party_obj.address_get(cursor, user, values['customer'],
type='delivery', context=context)
party = party_obj.browse(cursor, user, values['customer'], context=context)
@@ -762,8 +763,9 @@ class PackingInternal(OSV):
PackingInternal()
class Address(OSV):
_name = 'relationship.address'
_name = 'party.address'
delivery = fields.Boolean('Delivery')
Address()
+7 -6
View File
@@ -1,5 +1,6 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
@@ -801,13 +802,13 @@
<!-- Add delivery field on address -->
<record model="ir.ui.view" id="address_view_tree">
<field name="model">relationship.address</field>
<field name="inherit" ref="relationship.address_view_tree"/>
<field name="model">party.address</field>
<field name="inherit" ref="party.address_view_tree"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath
expr="/tree/field[@name=&quot;email&quot;]" position="after">
expr="/tree/field[@name=&quot;active&quot;]" position="after">
<field name="delivery" select="2"/>
</xpath>
</data>
@@ -815,8 +816,8 @@
</field>
</record>
<record model="ir.ui.view" id="address_view_form">
<field name="model">relationship.address</field>
<field name="inherit" ref="relationship.address_view_form"/>
<field name="model">party.address</field>
<field name="inherit" ref="party.address_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
BIN
View File
Binary file not shown.
+6 -2
View File
@@ -12,13 +12,17 @@ for dep in info.get('depends', []):
match = re.compile(
'(ir|res|workflow|webdav)((\s|$|<|>|<=|>=|==|!=).*?$)').match(dep)
if match:
dep = 'trytond' + match.group(2)
continue
else:
dep = 'trytond_' + dep
requires.append(dep)
major_version, minor_version, _ = info.get('version', '0.0.1').split('.', 2)
requires.append('trytond >= %s.%s' % (major_version, minor_version))
requires.append('trytond < %s.%s' % (major_version, str(int(minor_version) + 1)))
setup(name='trytond_' + info['name'].lower(),
version=info.get('version', '0'),
version=info.get('version', '0.0.1'),
description=info.get('description', ''),
author=info.get('author', ''),
author_email=info.get('email', ''),