[tryton-debian-vcs] tryton-modules-product-price-list branch upstream updated. upstream/2.8.0-1-g3d34b59
git repository hosting
tryton-debian-vcs at m9s.biz
Mon Nov 25 19:36:16 UTC 2013
The following commit has been merged in the upstream branch:
http://debian.tryton.org/gitweb/?p=packages/tryton-modules-product-price-list.git;a=commitdiff;h=upstream/2.8.0-1-g3d34b59
commit 3d34b59b748044117782eb8108d4138b3d3732bd
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sun Nov 24 17:27:34 2013 +0100
Adding upstream version 3.0.0.
diff --git a/CHANGELOG b/CHANGELOG
index 7f34659..7d5a2bd 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.0.0 - 2013-10-21
+* Bug fixes (see mercurial logs for details)
+
Version 2.8.0 - 2013-04-22
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index 2ecf527..3f58bda 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: trytond_product_price_list
-Version: 2.8.0
+Version: 3.0.0
Summary: Tryton module with price list
Home-page: http://www.tryton.org/
Author: Tryton
Author-email: UNKNOWN
License: GPL-3
-Download-URL: http://downloads.tryton.org/2.8/
+Download-URL: http://downloads.tryton.org/3.0/
Description: trytond_product_price_list
==========================
@@ -59,6 +59,7 @@ Classifier: Natural Language :: English
Classifier: Natural Language :: French
Classifier: Natural Language :: German
Classifier: Natural Language :: Russian
+Classifier: Natural Language :: Slovenian
Classifier: Natural Language :: Spanish
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.6
diff --git a/locale/es_CO.po b/locale/es_CO.po
index ff8eb04..5de9bc8 100644
--- a/locale/es_CO.po
+++ b/locale/es_CO.po
@@ -52,7 +52,7 @@ msgstr "Creado por Usuario"
msgctxt "field:product.price_list.line,formula:"
msgid "Formula"
-msgstr "Formula"
+msgstr "Fórmula"
msgctxt "field:product.price_list.line,id:"
msgid "ID"
diff --git a/locale/fr_FR.po b/locale/fr_FR.po
index f974d55..b54b6fe 100644
--- a/locale/fr_FR.po
+++ b/locale/fr_FR.po
@@ -120,14 +120,6 @@ msgctxt "view:party.party:"
msgid "Price List"
msgstr "Liste de prix"
-msgctxt "view:party.party:"
-msgid "Price List"
-msgstr "Liste de prix"
-
-msgctxt "view:product.price_list.line:"
-msgid "Price List Line"
-msgstr "Ligne de liste de prix"
-
msgctxt "view:product.price_list.line:"
msgid "Price List Line"
msgstr "Ligne de liste de prix"
@@ -136,14 +128,6 @@ msgctxt "view:product.price_list.line:"
msgid "Price List Lines"
msgstr "Lignes de liste de prix"
-msgctxt "view:product.price_list.line:"
-msgid "Price List Lines"
-msgstr "Lignes de liste de prix"
-
-msgctxt "view:product.price_list:"
-msgid "Price List"
-msgstr "Liste de prix"
-
msgctxt "view:product.price_list:"
msgid "Price List"
msgstr "Liste de prix"
@@ -151,7 +135,3 @@ msgstr "Liste de prix"
msgctxt "view:product.price_list:"
msgid "Price Lists"
msgstr "Listes de prix"
-
-msgctxt "view:product.price_list:"
-msgid "Price Lists"
-msgstr "Listes de prix"
diff --git a/locale/es_CO.po b/locale/sl_SI.po
similarity index 71%
copy from locale/es_CO.po
copy to locale/sl_SI.po
index ff8eb04..fcb638f 100644
--- a/locale/es_CO.po
+++ b/locale/sl_SI.po
@@ -4,19 +4,19 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "error:product.price_list.line:"
msgid "Invalid formula \"%(formula)s\" in price list line \"%(line)s\"."
-msgstr "Fómula inválida \"%(formula)s\" en línea de lista de precios \"%(line)s\"."
+msgstr "Neveljavna formula \"%(formula)s\" v postavki cenika \"%(line)s\"."
msgctxt "field:product.price_list,company:"
msgid "Company"
-msgstr "Compañía"
+msgstr "Podjetje"
msgctxt "field:product.price_list,create_date:"
msgid "Create Date"
-msgstr "Fecha de Creación"
+msgstr "Ustvarjeno"
msgctxt "field:product.price_list,create_uid:"
msgid "Create User"
-msgstr "Creado por Usuario"
+msgstr "Ustvaril"
msgctxt "field:product.price_list,id:"
msgid "ID"
@@ -24,31 +24,31 @@ msgstr "ID"
msgctxt "field:product.price_list,lines:"
msgid "Lines"
-msgstr "Líneas"
+msgstr "Postavke"
msgctxt "field:product.price_list,name:"
msgid "Name"
-msgstr "Nombre"
+msgstr "Naziv"
msgctxt "field:product.price_list,rec_name:"
msgid "Name"
-msgstr "Nombre"
+msgstr "Ime"
msgctxt "field:product.price_list,write_date:"
msgid "Write Date"
-msgstr "Fecha de Modificación"
+msgstr "Zapisano"
msgctxt "field:product.price_list,write_uid:"
msgid "Write User"
-msgstr "Modificado por Usuario"
+msgstr "Zapisal"
msgctxt "field:product.price_list.line,create_date:"
msgid "Create Date"
-msgstr "Fecha de Creación"
+msgstr "Ustvarjeno"
msgctxt "field:product.price_list.line,create_uid:"
msgid "Create User"
-msgstr "Creado por Usuario"
+msgstr "Ustvaril"
msgctxt "field:product.price_list.line,formula:"
msgid "Formula"
@@ -60,74 +60,72 @@ msgstr "ID"
msgctxt "field:product.price_list.line,price_list:"
msgid "Price List"
-msgstr "Lista de Precios"
+msgstr "Cenik"
msgctxt "field:product.price_list.line,product:"
msgid "Product"
-msgstr "Producto"
+msgstr "Izdelek"
msgctxt "field:product.price_list.line,quantity:"
msgid "Quantity"
-msgstr "Cantidad"
+msgstr "Količina"
msgctxt "field:product.price_list.line,rec_name:"
msgid "Name"
-msgstr "Nombre"
+msgstr "Ime"
msgctxt "field:product.price_list.line,sequence:"
msgid "Sequence"
-msgstr "Secuencia"
+msgstr "Zap.št."
msgctxt "field:product.price_list.line,unit_digits:"
msgid "Unit Digits"
-msgstr "Decimales de Unidad"
+msgstr "Decimalke"
msgctxt "field:product.price_list.line,write_date:"
msgid "Write Date"
-msgstr "Fecha de Modificación"
+msgstr "Zapisano"
msgctxt "field:product.price_list.line,write_uid:"
msgid "Write User"
-msgstr "Modificado por Usuario"
+msgstr "Zapisal"
msgctxt "help:product.price_list.line,formula:"
msgid ""
"Python expression that will be evaluated with:\n"
"- unit_price: the original unit_price"
-msgstr "La expresion python que será evaluada con:"
+msgstr ""
+"Pythonski izraz, preračunan z:\n"
+"- unit_price: izvorna cena "
msgctxt "model:ir.action,name:act_price_list_form"
msgid "Price Lists"
-msgstr "Listas de Precios"
+msgstr "Ceniki"
msgctxt "model:ir.ui.menu,name:menu_price_list"
msgid "Price Lists"
-msgstr "Listas de Precios"
+msgstr "Ceniki"
msgctxt "model:product.price_list,name:"
msgid "Price List"
-msgstr "Lista de Precios"
+msgstr "Cenik"
msgctxt "model:product.price_list.line,name:"
msgid "Price List Line"
-msgstr "Linea de Lista de Precios"
-
-msgctxt "view:party.party:"
-msgid "Price List"
-msgstr "Lista de Precios"
+msgstr "Postavka cenika"
msgctxt "view:product.price_list.line:"
msgid "Price List Line"
-msgstr "Linea de Lista de Precios"
+msgstr "Postavka cenika"
msgctxt "view:product.price_list.line:"
msgid "Price List Lines"
-msgstr "Lineas de Lista de Precios"
+msgstr "Postavke cenika"
msgctxt "view:product.price_list:"
msgid "Price List"
-msgstr "Lista de Precios"
+msgstr "Cenik"
msgctxt "view:product.price_list:"
msgid "Price Lists"
-msgstr "Listas de Precios"
+msgstr "Ceniki"
diff --git a/party.xml b/party.xml
deleted file mode 100644
index dd6f1fd..0000000
--- a/party.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?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. -->
-<tryton>
- <data>
-
- <record model="ir.ui.view" id="party_view_form">
- <field name="model">party.party</field>
- <field name="inherit" ref="party.party_view_form"/>
- <field name="name">party_form</field>
- </record>
-
- </data>
-</tryton>
diff --git a/price_list.py b/price_list.py
index a1e9650..bc3fa15 100644
--- a/price_list.py
+++ b/price_list.py
@@ -8,7 +8,7 @@ from trytond.tools import safe_eval
from trytond.pyson import If, Eval
from trytond.transaction import Transaction
from trytond.pool import Pool
-from trytond.backend import TableHandler
+from trytond import backend
__all__ = ['PriceList', 'PriceListLine']
@@ -52,7 +52,7 @@ class PriceList(ModelSQL, ModelView):
company = fields.Many2One('company.company', 'Company', required=True,
select=True, domain=[
('id', If(Eval('context', {}).contains('company'), '=', '!='),
- Eval('context', {}).get('company', 0)),
+ Eval('context', {}).get('company', -1)),
])
lines = fields.One2Many('product.price_list.line', 'price_list', 'Lines')
@@ -117,9 +117,7 @@ class PriceListLine(ModelSQL, ModelView):
price_list = fields.Many2One('product.price_list', 'Price List',
required=True, ondelete='CASCADE')
product = fields.Many2One('product.product', 'Product')
- sequence = fields.Integer('Sequence',
- order_field='(%(table)s.sequence IS NULL) %(order)s, '
- '%(table)s.sequence %(order)s')
+ sequence = fields.Integer('Sequence')
quantity = fields.Float('Quantity', digits=(16, Eval('unit_digits', 2)),
depends=['unit_digits'])
unit_digits = fields.Function(fields.Integer('Unit Digits',
@@ -140,6 +138,7 @@ class PriceListLine(ModelSQL, ModelView):
@classmethod
def __register__(cls, module_name):
+ TableHandler = backend.get('TableHandler')
cursor = Transaction().cursor
table = TableHandler(cursor, cls, module_name)
@@ -149,6 +148,11 @@ class PriceListLine(ModelSQL, ModelView):
table.not_null_action('sequence', action='remove')
@staticmethod
+ def order_sequence(tables):
+ table, _ = tables[None]
+ return [table.sequence == None, table.sequence]
+
+ @staticmethod
def default_formula():
return 'unit_price'
@@ -197,7 +201,7 @@ class PriceListLine(ModelSQL, ModelView):
for field in pattern.keys():
if field not in self._fields:
continue
- if not getattr(self, field):
+ if getattr(self, field) is None:
continue
if self._fields[field]._type == 'many2one':
if getattr(self, field).id != pattern[field]:
diff --git a/setup.py b/setup.py
index b4b955e..70464d6 100644
--- a/setup.py
+++ b/setup.py
@@ -63,6 +63,7 @@ setup(name='trytond_product_price_list',
'Natural Language :: French',
'Natural Language :: German',
'Natural Language :: Russian',
+ 'Natural Language :: Slovenian',
'Natural Language :: Spanish',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
diff --git a/tests/__init__.py b/tests/__init__.py
index b481128..761c2f5 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -2,3 +2,5 @@
#this repository contains the full copyright notices and license terms.
from .test_product_price_list import suite
+
+__all__ = ['suite']
diff --git a/tryton.cfg b/tryton.cfg
index 215a99b..39dabf5 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,10 +1,8 @@
[tryton]
-version=2.8.0
+version=3.0.0
depends:
company
ir
- party
product
xml:
price_list.xml
- party.xml
diff --git a/trytond_product_price_list.egg-info/PKG-INFO b/trytond_product_price_list.egg-info/PKG-INFO
index 7b45fac..a368e53 100644
--- a/trytond_product_price_list.egg-info/PKG-INFO
+++ b/trytond_product_price_list.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: trytond-product-price-list
-Version: 2.8.0
+Version: 3.0.0
Summary: Tryton module with price list
Home-page: http://www.tryton.org/
Author: Tryton
Author-email: UNKNOWN
License: GPL-3
-Download-URL: http://downloads.tryton.org/2.8/
+Download-URL: http://downloads.tryton.org/3.0/
Description: trytond_product_price_list
==========================
@@ -59,6 +59,7 @@ Classifier: Natural Language :: English
Classifier: Natural Language :: French
Classifier: Natural Language :: German
Classifier: Natural Language :: Russian
+Classifier: Natural Language :: Slovenian
Classifier: Natural Language :: Spanish
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.6
diff --git a/trytond_product_price_list.egg-info/SOURCES.txt b/trytond_product_price_list.egg-info/SOURCES.txt
index bc4ca47..d772f41 100644
--- a/trytond_product_price_list.egg-info/SOURCES.txt
+++ b/trytond_product_price_list.egg-info/SOURCES.txt
@@ -4,7 +4,6 @@ INSTALL
LICENSE
MANIFEST.in
README
-party.xml
price_list.xml
setup.py
tryton.cfg
@@ -22,6 +21,7 @@ locale/es_ES.po
locale/fr_FR.po
locale/nl_NL.po
locale/ru_RU.po
+locale/sl_SI.po
trytond_product_price_list.egg-info/PKG-INFO
trytond_product_price_list.egg-info/SOURCES.txt
trytond_product_price_list.egg-info/dependency_links.txt
@@ -29,7 +29,6 @@ trytond_product_price_list.egg-info/entry_points.txt
trytond_product_price_list.egg-info/not-zip-safe
trytond_product_price_list.egg-info/requires.txt
trytond_product_price_list.egg-info/top_level.txt
-view/party_form.xml
view/price_list_form.xml
view/price_list_line_form.xml
view/price_list_line_tree.xml
diff --git a/trytond_product_price_list.egg-info/requires.txt b/trytond_product_price_list.egg-info/requires.txt
index ff78698..0394306 100644
--- a/trytond_product_price_list.egg-info/requires.txt
+++ b/trytond_product_price_list.egg-info/requires.txt
@@ -1,4 +1,3 @@
-trytond_company >= 2.8, < 2.9
-trytond_party >= 2.8, < 2.9
-trytond_product >= 2.8, < 2.9
-trytond >= 2.8, < 2.9
\ No newline at end of file
+trytond_company >= 3.0, < 3.1
+trytond_product >= 3.0, < 3.1
+trytond >= 3.0, < 3.1
\ No newline at end of file
diff --git a/view/party_form.xml b/view/party_form.xml
deleted file mode 100644
index 2c93670..0000000
--- a/view/party_form.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?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. -->
-<data>
- <xpath expr="/form/notebook/page[@id='accounting']" position="after">
- <page string="Price List" id="price_list">
- </page>
- </xpath>
-</data>
--
tryton-modules-product-price-list
More information about the tryton-debian-vcs
mailing list