[tryton-debian-vcs] tryton-modules-sale-price-list branch debian updated. debian/4.2.0-1-2-g5a0f50c

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Wed Jun 7 13:35:34 UTC 2017


The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-sale-price-list.git;a=commitdiff;h=debian/4.2.0-1-2-g5a0f50c

commit 5a0f50c3f27a68da5f6401047dc99b7af745f7b8
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Wed Jun 7 15:26:58 2017 +0200

    Merging upstream version 4.4.0.

diff --git a/CHANGELOG b/CHANGELOG
index a8aa25b..e1d4c2d 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.4.0 - 2017-05-01
+* Bug fixes (see mercurial logs for details)
+
 Version 4.2.0 - 2016-11-28
 * Bug fixes (see mercurial logs for details)
 
diff --git a/COPYRIGHT b/COPYRIGHT
index 6f27a5e..fe4df05 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,6 +1,6 @@
-Copyright (C) 2009-2016 Cédric Krier.
+Copyright (C) 2009-2017 Cédric Krier.
 Copyright (C) 2009-2012 Bertrand Chenal.
-Copyright (C) 2009-2016 B2CK SPRL.
+Copyright (C) 2009-2017 B2CK SPRL.
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
diff --git a/PKG-INFO b/PKG-INFO
index 819cf4c..911d100 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond_sale_price_list
-Version: 4.2.0
+Version: 4.4.0
 Summary: Tryton module to add price list on sale
 Home-page: http://www.tryton.org/
 Author: Tryton
 Author-email: issue_tracker at tryton.org
 License: GPL-3
-Download-URL: http://downloads.tryton.org/4.2/
+Download-URL: http://downloads.tryton.org/4.4/
 Description: trytond_sale_price_list
         =======================
         
@@ -51,7 +51,7 @@ Classifier: Framework :: Tryton
 Classifier: Intended Audience :: Developers
 Classifier: Intended Audience :: Financial and Insurance Industry
 Classifier: Intended Audience :: Legal Industry
-Classifier: License :: OSI Approved :: GNU General Public License (GPL)
+Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
 Classifier: Natural Language :: Bulgarian
 Classifier: Natural Language :: Catalan
 Classifier: Natural Language :: Chinese (Simplified)
diff --git a/__init__.py b/__init__.py
index 9bacf39..1e26a58 100644
--- a/__init__.py
+++ b/__init__.py
@@ -11,8 +11,10 @@ from . import configuration
 def register():
     Pool.register(
         Party,
+        PartySalePriceList,
         Sale,
         SaleLine,
         Product,
         configuration.Configuration,
+        configuration.ConfigurationSalePriceList,
         module='sale_price_list', type_='model')
diff --git a/configuration.py b/configuration.py
index c2547fa..63ce486 100644
--- a/configuration.py
+++ b/configuration.py
@@ -1,65 +1,33 @@
 # This file is part of Tryton.  The COPYRIGHT file at the top level of
 # this repository contains the full copyright notices and license terms.
-from trytond.model import fields
+from trytond.model import ModelSQL, fields
 from trytond.pyson import Eval
-from trytond.transaction import Transaction
-from trytond.pool import PoolMeta, Pool
+from trytond.pool import PoolMeta
+from trytond.modules.company.model import (
+    CompanyMultiValueMixin, CompanyValueMixin)
 
-__all__ = ['Configuration']
+__all__ = ['Configuration', 'ConfigurationSalePriceList']
 
 
-class Configuration:
+class Configuration(CompanyMultiValueMixin):
     __metaclass__ = PoolMeta
     __name__ = 'sale.configuration'
-    sale_price_list = fields.Function(fields.Many2One(
-        'product.price_list', 'Sale Price List',
-        domain=[
-            ('company', '=', Eval('context', {}).get('company', -1)),
-            ],
-        states={
-            'invisible': ~Eval('context', {}).get('company'),
-            }),
-        'get_sale_price_list', setter='set_sale_price_list')
-
-    @classmethod
-    def _get_sale_price_list_field(cls):
-        pool = Pool()
-        ModelField = pool.get('ir.model.field')
-        field, = ModelField.search([
-            ('model.model', '=', 'party.party'),
-            ('name', '=', 'sale_price_list'),
-            ], limit=1)
-        return field
+    sale_price_list = fields.MultiValue(fields.Many2One(
+            'product.price_list', "Sale Price List",
+            domain=[
+                ('company', '=', Eval('context', {}).get('company', -1)),
+                ],
+            states={
+                'invisible': ~Eval('context', {}).get('company'),
+                }))
 
-    def get_sale_price_list(self, name):
-        pool = Pool()
-        Property = pool.get('ir.property')
-        company_id = Transaction().context.get('company')
-        sale_price_list_field = self._get_sale_price_list_field()
-        properties = Property.search([
-            ('field', '=', sale_price_list_field.id),
-            ('res', '=', None),
-            ('company', '=', company_id),
-            ], limit=1)
-        if properties:
-            prop, = properties
-            return prop.value.id
 
-    @classmethod
-    def set_sale_price_list(cls, configurations, name, value):
-        pool = Pool()
-        Property = pool.get('ir.property')
-        company_id = Transaction().context.get('company')
-        sale_price_list_field = cls._get_sale_price_list_field()
-        properties = Property.search([
-            ('field', '=', sale_price_list_field.id),
-            ('res', '=', None),
-            ('company', '=', company_id),
-            ])
-        Property.delete(properties)
-        if value:
-            Property.create([{
-                        'field': sale_price_list_field.id,
-                        'value': 'product.price_list,%s' % value,
-                        'company': company_id,
-                        }])
+class ConfigurationSalePriceList(ModelSQL, CompanyValueMixin):
+    "Sale Configuration Sale PriceList"
+    __name__ = 'sale.configuration.sale_price_list'
+    sale_price_list = fields.Many2One(
+        'product.price_list', "Sale Price List",
+        domain=[
+            ('company', '=', Eval('company', -1)),
+            ],
+        depends=['company'])
diff --git a/locale/bg.po b/locale/bg.po
index 12beaf3..7b66773 100644
--- a/locale/bg.po
+++ b/locale/bg.po
@@ -7,10 +7,93 @@ msgid "Sale Price List"
 msgstr "Ценова листа при продажба"
 
 #, fuzzy
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr "Ценова листа при продажба"
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Ценова листа при продажба"
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
+#, fuzzy
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr "Ценова листа при продажба"
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Ценова листа при продажба"
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr "Ценова листа"
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr ""
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr ""
diff --git a/locale/ca.po b/locale/ca.po
index 80d51f8..648ac10 100644
--- a/locale/ca.po
+++ b/locale/ca.po
@@ -6,10 +6,90 @@ msgctxt "field:party.party,sale_price_list:"
 msgid "Sale Price List"
 msgstr "Tarifa de venda"
 
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr "Tarifes de venda"
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr "Empresa"
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr "Data de creació"
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr "Usuari de creació"
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr "ID"
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr "Tercer"
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr "Nom"
+
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Tarifa de venda"
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr "Data de modificació"
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr "Usuari de modificació"
+
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr "Tarifa de venda"
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr "Empresa"
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr "Data de creació"
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr "Usuari de creació"
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr "ID"
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr "Nom"
+
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Tarifa de venda"
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr "Data de modificació"
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr "Usuari de modificació"
+
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr "Tarifa"
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr "Tarifa de venda per tercer"
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr "Configuració de la tarifa de venda"
diff --git a/locale/cs.po b/locale/cs.po
index dc6bf1b..e1f47e8 100644
--- a/locale/cs.po
+++ b/locale/cs.po
@@ -6,10 +6,90 @@ msgctxt "field:party.party,sale_price_list:"
 msgid "Sale Price List"
 msgstr ""
 
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr ""
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr ""
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr ""
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr ""
diff --git a/locale/de.po b/locale/de.po
index 541fe3b..42f972b 100644
--- a/locale/de.po
+++ b/locale/de.po
@@ -6,10 +6,90 @@ msgctxt "field:party.party,sale_price_list:"
 msgid "Sale Price List"
 msgstr "Preisliste Verkauf"
 
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr "Preisliste Verkauf"
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr "Unternehmen"
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr "Erstellungsdatum"
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr "Erstellt durch"
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr "ID"
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr "Partei"
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr "Name"
+
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Preisliste Verkauf"
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr "Zuletzt geändert"
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr "Letzte Änderung durch"
+
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr "Preisliste Verkauf"
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr "Unternehmen"
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr "Erstellungsdatum"
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr "Erstellt durch"
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr "ID"
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr "Name"
+
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Preisliste Verkauf"
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr "Zuletzt geändert"
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr "Letzte Änderung durch"
+
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr "Preisliste"
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr "Preisliste Verkauf für Partei"
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr "Einstellungen Verkauf Preisliste"
diff --git a/locale/es.po b/locale/es.po
index 07c4988..011852a 100644
--- a/locale/es.po
+++ b/locale/es.po
@@ -6,10 +6,90 @@ msgctxt "field:party.party,sale_price_list:"
 msgid "Sale Price List"
 msgstr "Tarifa de venta"
 
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr "Tarifas de venta"
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr "Empresa"
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr "Fecha de creación"
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr "Usuario de creación"
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr "ID"
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr "Tercero"
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr "Nombre"
+
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Tarifa de venta"
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr "Fecha de modificación"
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr "Usuario de modificación"
+
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr "Tarifa de venta"
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr "Empresa"
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr "Fecha de creación"
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr "Usuario de creación"
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr "ID"
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr "Nombre"
+
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Tarifa de venta"
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr "Fecha de modificación"
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr "Usuario de modificación"
+
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr "Tarifa"
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr "Tarifa de venta del tercero"
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr "Configuración de la tarifa de venta"
diff --git a/locale/es_419.po b/locale/es_419.po
index caef891..b01d5ef 100644
--- a/locale/es_419.po
+++ b/locale/es_419.po
@@ -6,10 +6,93 @@ msgctxt "field:party.party,sale_price_list:"
 msgid "Sale Price List"
 msgstr "Lista de precio de venta"
 
+#, fuzzy
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr "Lista de precio de venta"
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Lista de precio de venta"
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr "Lista de precio de venta"
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Lista de precio de venta"
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr "Lista de precios"
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr ""
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr ""
diff --git a/locale/fr.po b/locale/fr.po
index a9ab1b0..ceb4b06 100644
--- a/locale/fr.po
+++ b/locale/fr.po
@@ -6,10 +6,90 @@ msgctxt "field:party.party,sale_price_list:"
 msgid "Sale Price List"
 msgstr "Liste de prix de vente"
 
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr "Listes de prix de vente"
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr "Société"
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr "Date de création"
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr "Créé par"
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr "ID"
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr "Tiers"
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr "Nom"
+
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Liste de prix de vente"
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr "Date de mise à jour"
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr "Mis à jour par"
+
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr "Liste de prix de vente"
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr "Société"
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr "Date de création"
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr "Créé par"
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr "ID"
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr "Nom"
+
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Liste de prix de vente"
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr "Date de mise à jour"
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr "Mis à jour par"
+
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr "Liste de prix"
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr "Liste de prix de vente tiers"
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr "Configuration de vente liste de prix de vente"
diff --git a/locale/hu_HU.po b/locale/hu_HU.po
index 14db542..a2adf0a 100644
--- a/locale/hu_HU.po
+++ b/locale/hu_HU.po
@@ -6,11 +6,91 @@ msgctxt "field:party.party,sale_price_list:"
 msgid "Sale Price List"
 msgstr ""
 
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr ""
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 #, fuzzy
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr "Árlista"
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr ""
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr ""
diff --git a/locale/it_IT.po b/locale/it_IT.po
index 0bae128..44159bb 100644
--- a/locale/it_IT.po
+++ b/locale/it_IT.po
@@ -6,10 +6,93 @@ msgctxt "field:party.party,sale_price_list:"
 msgid "Sale Price List"
 msgstr "Listino di vendita"
 
+#, fuzzy
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr "Listino di vendita"
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Listino di vendita"
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr "Listino di vendita"
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Listino di vendita"
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr "Listino"
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr ""
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr ""
diff --git a/locale/ja_JP.po b/locale/ja_JP.po
index dc6bf1b..e1f47e8 100644
--- a/locale/ja_JP.po
+++ b/locale/ja_JP.po
@@ -6,10 +6,90 @@ msgctxt "field:party.party,sale_price_list:"
 msgid "Sale Price List"
 msgstr ""
 
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr ""
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr ""
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr ""
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr ""
diff --git a/locale/lo.po b/locale/lo.po
index 2ecb01a..6cce5e9 100644
--- a/locale/lo.po
+++ b/locale/lo.po
@@ -7,10 +7,92 @@ msgid "Sale Price List"
 msgstr "ລາຍການລາຄາຂາຍ"
 
 #, fuzzy
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr "ລາຍການລາຄາຂາຍ"
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "ລາຍການລາຄາຂາຍ"
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr "ລາຍການລາຄາຂາຍ"
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+#, fuzzy
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "ລາຍການລາຄາຂາຍ"
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr "ລາຍການລາຄາ"
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr ""
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr ""
diff --git a/locale/lt.po b/locale/lt.po
index dc6bf1b..e1f47e8 100644
--- a/locale/lt.po
+++ b/locale/lt.po
@@ -6,10 +6,90 @@ msgctxt "field:party.party,sale_price_list:"
 msgid "Sale Price List"
 msgstr ""
 
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr ""
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr ""
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr ""
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr ""
diff --git a/locale/nl.po b/locale/nl.po
index dc6bf1b..e1f47e8 100644
--- a/locale/nl.po
+++ b/locale/nl.po
@@ -6,10 +6,90 @@ msgctxt "field:party.party,sale_price_list:"
 msgid "Sale Price List"
 msgstr ""
 
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr ""
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr ""
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr ""
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr ""
diff --git a/locale/pl.po b/locale/pl.po
index dc6bf1b..e1f47e8 100644
--- a/locale/pl.po
+++ b/locale/pl.po
@@ -6,10 +6,90 @@ msgctxt "field:party.party,sale_price_list:"
 msgid "Sale Price List"
 msgstr ""
 
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr ""
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr ""
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr ""
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr ""
diff --git a/locale/pt_BR.po b/locale/pt_BR.po
index e102c41..6892278 100644
--- a/locale/pt_BR.po
+++ b/locale/pt_BR.po
@@ -6,11 +6,90 @@ msgctxt "field:party.party,sale_price_list:"
 msgid "Sale Price List"
 msgstr "Lista de Preço de Venda"
 
-#, fuzzy
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr "Lista de Preço de Venda"
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr "Empresa"
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr "Data de criação"
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr "Criado por"
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr "ID"
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr "Pessoa"
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr "Nome"
+
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Lista de Preço de Venda"
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr "Data de edição"
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr "Editado por"
+
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr "Lista de Preço de Venda"
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr "Empresa"
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr "Data de criação"
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr "Criado por"
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr "ID"
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr "Nome"
+
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Lista de Preço de Venda"
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr "Data de edição"
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr "Editado por"
+
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr "Lista de Preços"
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr "Lista de Preço de Venda da Pessoa"
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr "Configurações de Venda Lista de Preço de Venda"
diff --git a/locale/ru.po b/locale/ru.po
index dc6bf1b..e1f47e8 100644
--- a/locale/ru.po
+++ b/locale/ru.po
@@ -6,10 +6,90 @@ msgctxt "field:party.party,sale_price_list:"
 msgid "Sale Price List"
 msgstr ""
 
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr ""
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr ""
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr ""
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr ""
diff --git a/locale/sl.po b/locale/sl.po
index 1a2b7c5..c4e0b1d 100644
--- a/locale/sl.po
+++ b/locale/sl.po
@@ -6,11 +6,90 @@ msgctxt "field:party.party,sale_price_list:"
 msgid "Sale Price List"
 msgstr "Prodajni cenik"
 
-#, fuzzy
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr "Prodajni ceniki"
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr "Družba"
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr "Izdelano"
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr "Izdelal"
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr "ID"
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr "Partner"
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr "Ime"
+
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Prodajni cenik"
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr "Zapisano"
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr "Zapisal"
+
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr "Prodajni cenik"
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr "Družba"
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr "Izdelano"
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr "Izdelal"
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr "ID"
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr "Ime"
+
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr "Prodajni cenik"
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr "Zapisano"
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr "Zapisal"
+
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr "Cenik"
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr "Prodajni cenik partnerja"
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr "Konfiguracija prodajnega cenika"
diff --git a/locale/zh_CN.po b/locale/zh_CN.po
index dc6bf1b..e1f47e8 100644
--- a/locale/zh_CN.po
+++ b/locale/zh_CN.po
@@ -6,10 +6,90 @@ msgctxt "field:party.party,sale_price_list:"
 msgid "Sale Price List"
 msgstr ""
 
+msgctxt "field:party.party,sale_price_lists:"
+msgid "Sale Price Lists"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,party:"
+msgid "Party"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:party.party.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.configuration,sale_price_list:"
 msgid "Sale Price List"
 msgstr ""
 
+msgctxt "field:sale.configuration.sale_price_list,company:"
+msgid "Company"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_date:"
+msgid "Create Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,create_uid:"
+msgid "Create User"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,id:"
+msgid "ID"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,rec_name:"
+msgid "Name"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,sale_price_list:"
+msgid "Sale Price List"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_date:"
+msgid "Write Date"
+msgstr ""
+
+msgctxt "field:sale.configuration.sale_price_list,write_uid:"
+msgid "Write User"
+msgstr ""
+
 msgctxt "field:sale.sale,price_list:"
 msgid "Price List"
 msgstr ""
+
+msgctxt "model:party.party.sale_price_list,name:"
+msgid "Party Sale Price List"
+msgstr ""
+
+msgctxt "model:sale.configuration.sale_price_list,name:"
+msgid "Sale Configuration Sale PriceList"
+msgstr ""
diff --git a/party.py b/party.py
index 6c59a88..0d42707 100644
--- a/party.py
+++ b/party.py
@@ -1,20 +1,66 @@
 # This file is part of Tryton.  The COPYRIGHT file at the top level of
 # this repository contains the full copyright notices and license terms.
-from trytond.model import fields
+from trytond import backend
+from trytond.model import ModelSQL, fields
 from trytond.pyson import Eval
-from trytond.pool import PoolMeta
+from trytond.pool import PoolMeta, Pool
+from trytond.tools.multivalue import migrate_property
+from trytond.modules.company.model import (
+    CompanyMultiValueMixin, CompanyValueMixin)
 
-__all__ = ['Party']
+__all__ = ['Party', 'PartySalePriceList']
 
 
-class Party:
+class Party(CompanyMultiValueMixin):
     __metaclass__ = PoolMeta
     __name__ = 'party.party'
-    sale_price_list = fields.Property(fields.Many2One('product.price_list',
-            'Sale Price List',
+    sale_price_list = fields.MultiValue(fields.Many2One(
+            'product.price_list', "Sale Price List",
             domain=[
                 ('company', '=', Eval('context', {}).get('company', -1)),
                 ],
             states={
                 'invisible': ~Eval('context', {}).get('company'),
                 }))
+    sale_price_lists = fields.One2Many(
+        'party.party.sale_price_list', 'party', "Sale Price Lists")
+
+    @classmethod
+    def default_sale_price_list(cls, **pattern):
+        pool = Pool()
+        Configuration = pool.get('sale.configuration')
+        config = Configuration(1)
+        price_list = config.get_multivalue('sale_price_list', **pattern)
+        return price_list.id if price_list else None
+
+
+class PartySalePriceList(ModelSQL, CompanyValueMixin):
+    "Party Sale Price List"
+    __name__ = 'party.party.sale_price_list'
+    party = fields.Many2One(
+        'party.party', "Party", ondelete='CASCADE', select=True)
+    sale_price_list = fields.Many2One(
+        'product.price_list', "Sale Price List",
+        domain=[
+            ('company', '=', Eval('company', -1)),
+            ],
+        depends=['company'])
+
+    @classmethod
+    def __register__(cls, module_name):
+        TableHandler = backend.get('TableHandler')
+        exist = TableHandler.table_exist(cls._table)
+
+        super(PartySalePriceList, cls).__register__(module_name)
+
+        if not exist:
+            cls._migrate_property([], [], [])
+
+    @classmethod
+    def _migrate_property(cls, field_names, value_names, fields):
+        field_names.append('sale_price_list')
+        value_names.append('sale_price_list')
+        fields.append('company')
+        migrate_property(
+            'party.party', field_names, cls, value_names,
+            parent='party', fields=fields)
diff --git a/sale.py b/sale.py
index 5e473b4..b580cd3 100644
--- a/sale.py
+++ b/sale.py
@@ -2,7 +2,7 @@
 # this repository contains the full copyright notices and license terms.
 from trytond.model import fields
 from trytond.pyson import Eval, Not, Equal, Or, Bool
-from trytond.pool import PoolMeta
+from trytond.pool import PoolMeta, Pool
 
 __all__ = ['Sale', 'SaleLine']
 
@@ -29,10 +29,14 @@ class Sale:
             cls.lines.depends.append('party')
 
     def on_change_party(self):
+        pool = Pool()
+        Configuration = pool.get('sale.configuration')
         super(Sale, self).on_change_party()
-        self.price_list = None
         if self.party and self.party.sale_price_list:
             self.price_list = self.party.sale_price_list
+        else:
+            config = Configuration(1)
+            self.price_list = config.sale_price_list
 
 
 class SaleLine:
@@ -45,6 +49,8 @@ class SaleLine:
         cls.quantity.on_change.add('_parent_sale.price_list')
         cls.unit.on_change.add('_parent_sale.price_list')
         cls.product.on_change.add('_parent_sale.price_list')
+        cls.product.context['price_list'] = Eval(
+            '_parent_sale', {}).get('price_list')
 
     def _get_context_sale_price(self):
         context = super(SaleLine, self)._get_context_sale_price()
diff --git a/setup.py b/setup.py
index faa6c31..3b16212 100644
--- a/setup.py
+++ b/setup.py
@@ -83,7 +83,7 @@ setup(name=name,
         'Intended Audience :: Developers',
         'Intended Audience :: Financial and Insurance Industry',
         'Intended Audience :: Legal Industry',
-        'License :: OSI Approved :: GNU General Public License (GPL)',
+        'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
         'Natural Language :: Bulgarian',
         'Natural Language :: Catalan',
         'Natural Language :: Chinese (Simplified)',
diff --git a/tryton.cfg b/tryton.cfg
index 5a333e8..77ecd45 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,6 +1,7 @@
 [tryton]
-version=4.2.0
+version=4.4.0
 depends:
+    company
     ir
     party
     product_price_list
diff --git a/trytond_sale_price_list.egg-info/PKG-INFO b/trytond_sale_price_list.egg-info/PKG-INFO
index fa2616b..fd5ab5a 100644
--- a/trytond_sale_price_list.egg-info/PKG-INFO
+++ b/trytond_sale_price_list.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond-sale-price-list
-Version: 4.2.0
+Version: 4.4.0
 Summary: Tryton module to add price list on sale
 Home-page: http://www.tryton.org/
 Author: Tryton
 Author-email: issue_tracker at tryton.org
 License: GPL-3
-Download-URL: http://downloads.tryton.org/4.2/
+Download-URL: http://downloads.tryton.org/4.4/
 Description: trytond_sale_price_list
         =======================
         
@@ -51,7 +51,7 @@ Classifier: Framework :: Tryton
 Classifier: Intended Audience :: Developers
 Classifier: Intended Audience :: Financial and Insurance Industry
 Classifier: Intended Audience :: Legal Industry
-Classifier: License :: OSI Approved :: GNU General Public License (GPL)
+Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
 Classifier: Natural Language :: Bulgarian
 Classifier: Natural Language :: Catalan
 Classifier: Natural Language :: Chinese (Simplified)
diff --git a/trytond_sale_price_list.egg-info/requires.txt b/trytond_sale_price_list.egg-info/requires.txt
index e3058a3..24fbd8b 100644
--- a/trytond_sale_price_list.egg-info/requires.txt
+++ b/trytond_sale_price_list.egg-info/requires.txt
@@ -1,4 +1,5 @@
-trytond_party >= 4.2, < 4.3
-trytond_product_price_list >= 4.2, < 4.3
-trytond_sale >= 4.2, < 4.3
-trytond >= 4.2, < 4.3
+trytond_company >= 4.4, < 4.5
+trytond_party >= 4.4, < 4.5
+trytond_product_price_list >= 4.4, < 4.5
+trytond_sale >= 4.4, < 4.5
+trytond >= 4.4, < 4.5
-- 
tryton-modules-sale-price-list



More information about the tryton-debian-vcs mailing list