Updated name fields and locales
This commit is contained in:
parent
c33ecc3cc2
commit
51ab6e96ef
Binary file not shown.
Binary file not shown.
Binary file not shown.
96
locale/ca.po
96
locale/ca.po
|
@ -14,10 +14,50 @@ msgctxt "field:product.product,bulk_type:"
|
|||
msgid "Bulk"
|
||||
msgstr "Granel"
|
||||
|
||||
msgctxt "field:product.product,capacity:"
|
||||
msgid "Capacity"
|
||||
msgstr "Capacitat"
|
||||
|
||||
msgctxt "field:product.product,capacity_digits:"
|
||||
msgid "Capacity Digits"
|
||||
msgstr "Decimals de la capacitat"
|
||||
|
||||
msgctxt "field:product.product,capacity_uom:"
|
||||
msgid "Capacity Uom"
|
||||
msgstr "UdM de la capacitat"
|
||||
|
||||
msgctxt "field:product.product,density:"
|
||||
msgid "Density (kg/m3)"
|
||||
msgstr "Densitat (kg/m3)"
|
||||
|
||||
msgctxt "field:product.product,lot_sequence:"
|
||||
msgid "Lot Sequence"
|
||||
msgstr "Seqüència de lot"
|
||||
|
||||
msgctxt "field:product.product,lot_sequences:"
|
||||
msgid "Lot Sequences"
|
||||
msgstr "Seqüències de lot"
|
||||
|
||||
msgctxt "field:product.product,netweight:"
|
||||
msgid "Net Weight"
|
||||
msgstr "Pes net"
|
||||
|
||||
msgctxt "field:product.product,netweight_digits:"
|
||||
msgid "Net Weight Digits"
|
||||
msgstr "Decimals del pes net"
|
||||
|
||||
msgctxt "field:product.product,netweight_uom:"
|
||||
msgid "Net Weight Uom"
|
||||
msgstr "UdM del pes net"
|
||||
|
||||
msgctxt "field:product.product,packaging:"
|
||||
msgid "Packaging"
|
||||
msgstr "Envàs"
|
||||
|
||||
msgctxt "field:product.product,packaging_products:"
|
||||
msgid "Packaging Products"
|
||||
msgstr "Envasos de producte"
|
||||
|
||||
msgctxt "field:product.template,bulk_product:"
|
||||
msgid "Bulk Product"
|
||||
msgstr "Producte granel"
|
||||
|
@ -30,10 +70,54 @@ msgctxt "field:product.template,bulk_type:"
|
|||
msgid "Bulk"
|
||||
msgstr "Granel"
|
||||
|
||||
msgctxt "field:product.template,capacity:"
|
||||
msgid "Capacity"
|
||||
msgstr "Capacitat"
|
||||
|
||||
msgctxt "field:product.template,capacity_digits:"
|
||||
msgid "Capacity Digits"
|
||||
msgstr "Decimals de la capacitat"
|
||||
|
||||
msgctxt "field:product.template,capacity_uom:"
|
||||
msgid "Capacity Uom"
|
||||
msgstr "UdM de la capacitat"
|
||||
|
||||
msgctxt "field:product.template,density:"
|
||||
msgid "Density (kg/m3)"
|
||||
msgstr "Densitat (kg/m3)"
|
||||
|
||||
msgctxt "field:product.template,netweight:"
|
||||
msgid "Net Weight"
|
||||
msgstr "Pes net"
|
||||
|
||||
msgctxt "field:product.template,netweight_digits:"
|
||||
msgid "Net Weight Digits"
|
||||
msgstr "Decimals del pes net"
|
||||
|
||||
msgctxt "field:product.template,netweight_uom:"
|
||||
msgid "Net Weight Uom"
|
||||
msgstr "UdM del pes net"
|
||||
|
||||
msgctxt "field:product.template,packaging:"
|
||||
msgid "Packaging"
|
||||
msgstr "Envàs"
|
||||
|
||||
msgctxt "field:product.template,packaging_products:"
|
||||
msgid "Packaging Products"
|
||||
msgstr "Envasos de producte"
|
||||
|
||||
msgctxt "field:product.template-product.packaging,packaged_product:"
|
||||
msgid "Packaged Product"
|
||||
msgstr "Producte envasat"
|
||||
|
||||
msgctxt "field:product.template-product.packaging,packaging_product:"
|
||||
msgid "Packaging Product"
|
||||
msgstr "Envasos de producte"
|
||||
|
||||
msgctxt "field:product.template-product.packaging,product:"
|
||||
msgid "Product"
|
||||
msgstr "Producte"
|
||||
|
||||
msgctxt "field:stock.move,bulk_product:"
|
||||
msgid "Bulk Product"
|
||||
msgstr "Producte granel"
|
||||
|
@ -77,3 +161,15 @@ msgstr ""
|
|||
msgctxt "model:ir.ui.menu,name:menu_product_bulk_stock"
|
||||
msgid "Bulk Products"
|
||||
msgstr "Productes granel"
|
||||
|
||||
msgctxt "model:product.template-product.packaging,name:"
|
||||
msgid "Template - Product Packaging"
|
||||
msgstr "Plantilla - Envasos producte"
|
||||
|
||||
msgctxt "view:product.template:"
|
||||
msgid "Create packaging products"
|
||||
msgstr "Crear productes envasats"
|
||||
|
||||
msgctxt "view:product.template:"
|
||||
msgid "Packaging Products"
|
||||
msgstr "Envasos de producte"
|
||||
|
|
96
locale/es.po
96
locale/es.po
|
@ -14,10 +14,50 @@ msgctxt "field:product.product,bulk_type:"
|
|||
msgid "Bulk"
|
||||
msgstr "Granel"
|
||||
|
||||
msgctxt "field:product.product,capacity:"
|
||||
msgid "Capacity"
|
||||
msgstr "Capacidad"
|
||||
|
||||
msgctxt "field:product.product,capacity_digits:"
|
||||
msgid "Capacity Digits"
|
||||
msgstr "Decimales de la capacidad"
|
||||
|
||||
msgctxt "field:product.product,capacity_uom:"
|
||||
msgid "Capacity Uom"
|
||||
msgstr "UdM de la capacidad"
|
||||
|
||||
msgctxt "field:product.product,density:"
|
||||
msgid "Density (kg/m3)"
|
||||
msgstr "Densidad (kg/m3)"
|
||||
|
||||
msgctxt "field:product.product,lot_sequence:"
|
||||
msgid "Lot Sequence"
|
||||
msgstr "Secuencia de lote"
|
||||
|
||||
msgctxt "field:product.product,lot_sequences:"
|
||||
msgid "Lot Sequences"
|
||||
msgstr "Secuencias de lote"
|
||||
|
||||
msgctxt "field:product.product,netweight:"
|
||||
msgid "Net Weight"
|
||||
msgstr "Peso neto"
|
||||
|
||||
msgctxt "field:product.product,netweight_digits:"
|
||||
msgid "Net Weight Digits"
|
||||
msgstr "Decimales del peso neto"
|
||||
|
||||
msgctxt "field:product.product,netweight_uom:"
|
||||
msgid "Net Weight Uom"
|
||||
msgstr "UdM del peso neto"
|
||||
|
||||
msgctxt "field:product.product,packaging:"
|
||||
msgid "Packaging"
|
||||
msgstr "Envase"
|
||||
|
||||
msgctxt "field:product.product,packaging_products:"
|
||||
msgid "Packaging Products"
|
||||
msgstr "Envases de producto"
|
||||
|
||||
msgctxt "field:product.template,bulk_product:"
|
||||
msgid "Bulk Product"
|
||||
msgstr "Producto granel"
|
||||
|
@ -30,10 +70,54 @@ msgctxt "field:product.template,bulk_type:"
|
|||
msgid "Bulk"
|
||||
msgstr "Granel"
|
||||
|
||||
msgctxt "field:product.template,capacity:"
|
||||
msgid "Capacity"
|
||||
msgstr "Capacidad"
|
||||
|
||||
msgctxt "field:product.template,capacity_digits:"
|
||||
msgid "Capacity Digits"
|
||||
msgstr "Decimales de la capacidad"
|
||||
|
||||
msgctxt "field:product.template,capacity_uom:"
|
||||
msgid "Capacity Uom"
|
||||
msgstr "UdM de la capacidad"
|
||||
|
||||
msgctxt "field:product.template,density:"
|
||||
msgid "Density (kg/m3)"
|
||||
msgstr "Densidad (kg/m3)"
|
||||
|
||||
msgctxt "field:product.template,netweight:"
|
||||
msgid "Net Weight"
|
||||
msgstr "Peso neto"
|
||||
|
||||
msgctxt "field:product.template,netweight_digits:"
|
||||
msgid "Net Weight Digits"
|
||||
msgstr "Decimales del peso neto"
|
||||
|
||||
msgctxt "field:product.template,netweight_uom:"
|
||||
msgid "Net Weight Uom"
|
||||
msgstr "UdM del peso neto"
|
||||
|
||||
msgctxt "field:product.template,packaging:"
|
||||
msgid "Packaging"
|
||||
msgstr "Envase"
|
||||
|
||||
msgctxt "field:product.template,packaging_products:"
|
||||
msgid "Packaging Products"
|
||||
msgstr "Envases de producto"
|
||||
|
||||
msgctxt "field:product.template-product.packaging,packaged_product:"
|
||||
msgid "Packaged Product"
|
||||
msgstr "Producto envasado"
|
||||
|
||||
msgctxt "field:product.template-product.packaging,packaging_product:"
|
||||
msgid "Packaging Product"
|
||||
msgstr "Envases de producto"
|
||||
|
||||
msgctxt "field:product.template-product.packaging,product:"
|
||||
msgid "Product"
|
||||
msgstr "Producto"
|
||||
|
||||
msgctxt "field:stock.move,bulk_product:"
|
||||
msgid "Bulk Product"
|
||||
msgstr "Producto granel"
|
||||
|
@ -77,3 +161,15 @@ msgstr ""
|
|||
msgctxt "model:ir.ui.menu,name:menu_product_bulk_stock"
|
||||
msgid "Bulk Products"
|
||||
msgstr "Productos granel"
|
||||
|
||||
msgctxt "model:product.template-product.packaging,name:"
|
||||
msgid "Template - Product Packaging"
|
||||
msgstr "Plantilla - Envases producto"
|
||||
|
||||
msgctxt "view:product.template:"
|
||||
msgid "Create packaging products"
|
||||
msgstr "Crear productos envasados"
|
||||
|
||||
msgctxt "view:product.template:"
|
||||
msgid "Packaging Products"
|
||||
msgstr "Envases de producto"
|
||||
|
|
|
@ -19,12 +19,12 @@ class TemplateProductPackaging(ModelSQL, ModelView):
|
|||
"Template - Product Packaging"
|
||||
__name__ = 'product.template-product.packaging'
|
||||
_rec_name = 'packaging_product'
|
||||
packaging_product = fields.Many2One('product.template', 'Product',
|
||||
packaging_product = fields.Many2One('product.template', 'Packaging Product',
|
||||
required=True, ondelete='CASCADE', domain=[
|
||||
('packaging', '=', True),
|
||||
])
|
||||
product = fields.Many2One('product.template', 'Product', required=True)
|
||||
output_product = fields.Many2One('product.template', 'Output Product',
|
||||
packaged_product = fields.Many2One('product.template', 'Packaged Product',
|
||||
states = {
|
||||
'readonly': True,
|
||||
},
|
||||
|
@ -155,7 +155,7 @@ class Template(metaclass=PoolMeta):
|
|||
|
||||
for bulk_product in products:
|
||||
for package_product in bulk_product.packaging_products:
|
||||
if package_product.output_product:
|
||||
if package_product.packaged_product:
|
||||
continue
|
||||
|
||||
new_code = ((bulk_product.products[0].code
|
||||
|
@ -198,7 +198,7 @@ class Template(metaclass=PoolMeta):
|
|||
output_template.save()
|
||||
|
||||
output_product, = output_template.products
|
||||
package_product.output_product = output_template
|
||||
package_product.packaged_product = output_template
|
||||
output_to_save.append(package_product)
|
||||
|
||||
bom = Bom(name=new_name)
|
||||
|
|
Loading…
Reference in New Issue