Adapt ir.message
This commit is contained in:
parent
cfa7ba66ff
commit
d214546cbf
10
locale/ca.po
10
locale/ca.po
|
@ -14,12 +14,6 @@ msgctxt "error:product.template:"
|
|||
msgid "Thumb \"%(file_name)s\" size is larger than \"%(size)s\"Kb"
|
||||
msgstr "El tamany de la miniatura \"%(file_name)s\" és mes gran que \"%(size)s\"Kb"
|
||||
|
||||
msgctxt "error:sale.shop:"
|
||||
msgid "Functions import/export in Galatea Shops are not necessary"
|
||||
msgstr ""
|
||||
"Les funcions de importació/exportació a les botigues Galatea no son "
|
||||
"necesaris"
|
||||
|
||||
msgctxt "field:account.payment.type,esale_code:"
|
||||
msgid "Code App Payment"
|
||||
msgstr "Codi pagament App"
|
||||
|
@ -238,6 +232,10 @@ msgstr ""
|
|||
"El preu eSale es calculat segons la botiga de les preferencies de l'usuari i"
|
||||
" la configuració de la botiga"
|
||||
|
||||
msgctxt "model:ir.message,text:msg_not_import_export_method"
|
||||
msgid "Not available import/export methods in Galatea"
|
||||
msgstr "No està disponible la importació/exportació a Galatea"
|
||||
|
||||
msgctxt "selection:galatea.website,esale_stock_qty:"
|
||||
msgid "Forecast Quantity"
|
||||
msgstr "Quantitat prevista"
|
||||
|
|
10
locale/es.po
10
locale/es.po
|
@ -14,12 +14,6 @@ msgctxt "error:product.template:"
|
|||
msgid "Thumb \"%(file_name)s\" size is larger than \"%(size)s\"Kb"
|
||||
msgstr "El tamaño de la miniatura \"%(file_name)s\" es más grande que \"%(size)s\"Kb"
|
||||
|
||||
msgctxt "error:sale.shop:"
|
||||
msgid "Functions import/export in Galatea Shops are not necessary"
|
||||
msgstr ""
|
||||
"Las funciones de importación/exportación en las tiendas Galatea no son "
|
||||
"necesarias"
|
||||
|
||||
msgctxt "field:account.payment.type,esale_code:"
|
||||
msgid "Code App Payment"
|
||||
msgstr "Código pago App"
|
||||
|
@ -238,6 +232,10 @@ msgstr ""
|
|||
"El precio de eSale es calculado según la tienda de las preferencias del "
|
||||
"usuario y la configuración de la tienda"
|
||||
|
||||
msgctxt "model:ir.message,text:msg_not_import_export_method"
|
||||
msgid "Not available import/export methods in Galatea"
|
||||
msgstr "No está disponible la importación/exportación a Galatea"
|
||||
|
||||
msgctxt "selection:galatea.website,esale_stock_qty:"
|
||||
msgid "Forecast Quantity"
|
||||
msgstr "Cantidad prevista"
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
<?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 group="1">
|
||||
<record model="ir.message" id="msg_not_import_export_method">
|
||||
<field name="text">Not available import/export methods in Galatea</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
11
shop.py
11
shop.py
|
@ -2,6 +2,8 @@
|
|||
# The COPYRIGHT file at the top level of this repository contains
|
||||
# the full copyright notices and license terms.
|
||||
from trytond.pool import PoolMeta
|
||||
from trytond.i18n import gettext
|
||||
from trytond.exceptions import UserError
|
||||
|
||||
__all__ = ['SaleShop']
|
||||
|
||||
|
@ -9,14 +11,6 @@ __all__ = ['SaleShop']
|
|||
class SaleShop(metaclass=PoolMeta):
|
||||
__name__ = 'sale.shop'
|
||||
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
super(SaleShop, cls).__setup__()
|
||||
cls._error_messages.update({
|
||||
'not_import': 'Functions import/export in Galatea Shops are ' \
|
||||
'not necessary',
|
||||
})
|
||||
|
||||
@classmethod
|
||||
def get_shop_app(cls):
|
||||
res = super(SaleShop, cls).get_shop_app()
|
||||
|
@ -29,6 +23,7 @@ class SaleShop(metaclass=PoolMeta):
|
|||
|
||||
def import_orders_galatea(self, shop):
|
||||
self.raise_user_error('not_import')
|
||||
raise UserError(gettext('galatea_esale.msg_not_import_export_method'))
|
||||
|
||||
def export_state_galatea(self, shop):
|
||||
"""Export State Sale whitout app don't available
|
||||
|
|
|
@ -13,6 +13,7 @@ extras_depend:
|
|||
xml:
|
||||
galatea.xml
|
||||
menu.xml
|
||||
message.xml
|
||||
payment_type.xml
|
||||
product.xml
|
||||
sale.xml
|
||||
|
|
Loading…
Reference in New Issue