Compare commits
10 commits
Author | SHA1 | Date | |
---|---|---|---|
54cdb9c907 | |||
35f5712918 | |||
459d99a7c3 | |||
663479e4a2 | |||
f9efd08ff5 | |||
5cd63e80ac | |||
a796e31f22 | |||
6e42b9c38c | |||
3b0d37a0ac | |||
3d189d87a1 |
47 changed files with 28 additions and 2547 deletions
|
@ -2,7 +2,7 @@
|
|||
'name': 'Product Create Stock Picking',
|
||||
'category': 'Warehouse',
|
||||
'summary': 'Add an action to create a stock picking from a selection of products.',
|
||||
'version': '12.0.0.0.1',
|
||||
'version': "16.0.1.0.0",
|
||||
'description': """
|
||||
|
||||
Add an action to create a stock picking from a selection of products.
|
||||
|
|
|
@ -11,7 +11,6 @@ from odoo import tools, models, fields, api, _
|
|||
class ProductTemplate(models.Model):
|
||||
_inherit = "product.template"
|
||||
|
||||
@api.multi
|
||||
def create_stock_picking(self):
|
||||
picking_vals = self.env['stock.picking'].default_get(self.env['stock.picking']._fields.keys())
|
||||
picking_vals.update({
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
'name': 'Product Library',
|
||||
'category': 'Product',
|
||||
'summary': 'Add library related fields to product',
|
||||
'version': '12.0.1.0.2',
|
||||
'version': "16.0.1.0.0",
|
||||
'description': """
|
||||
|
||||
Addon mejora de Odoo para librerías y tiendas de discos
|
||||
|
|
|
@ -1,49 +0,0 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * pos_default_empty_image
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2020-10-26 11:08+0000\n"
|
||||
"Last-Translator: Daniel Martinez Vila <daniel.martinez@qubiq.es>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 3.10\n"
|
||||
|
||||
#. module: pos_default_empty_image
|
||||
#: model:ir.model.fields,field_description:pos_default_empty_image.field_pos_config__iface_fixed_font_size
|
||||
#: model_terms:ir.ui.view,arch_db:pos_default_empty_image.pos_config_view_form
|
||||
msgid "Fixed Font Size"
|
||||
msgstr "Tamaño de fuente fijo"
|
||||
|
||||
#. module: pos_default_empty_image
|
||||
#: model:ir.model.fields,help:pos_default_empty_image.field_pos_config__iface_fixed_font_size
|
||||
#: model_terms:ir.ui.view,arch_db:pos_default_empty_image.pos_config_view_form
|
||||
msgid ""
|
||||
"Font size of the product name, when it has no image. Set '0' will set "
|
||||
"adaptative font-size, depending on the length of the name."
|
||||
msgstr ""
|
||||
"Tamaño de fuente del nombre del producto, cuando no tiene imagen. Establecer "
|
||||
"'0' establecerá un tamaño de fuente adaptativo, dependiendo de la longitud "
|
||||
"del nombre."
|
||||
|
||||
#. module: pos_default_empty_image
|
||||
#: model:ir.model.fields,field_description:pos_default_empty_image.field_product_product__has_image
|
||||
msgid "Has Image"
|
||||
msgstr "Tiene imagen"
|
||||
|
||||
#. module: pos_default_empty_image
|
||||
#: model:ir.model,name:pos_default_empty_image.model_pos_config
|
||||
msgid "Point of Sale Configuration"
|
||||
msgstr "Configuración del punto de venta"
|
||||
|
||||
#. module: pos_default_empty_image
|
||||
#: model:ir.model,name:pos_default_empty_image.model_product_product
|
||||
msgid "Product"
|
||||
msgstr "Producto"
|
|
@ -1,42 +0,0 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * product_library
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: pos_default_empty_image
|
||||
#: model:ir.model.fields,field_description:pos_default_empty_image.field_pos_config__iface_fixed_font_size
|
||||
#: model_terms:ir.ui.view,arch_db:pos_default_empty_image.pos_config_view_form
|
||||
msgid "Fixed Font Size"
|
||||
msgstr ""
|
||||
|
||||
#. module: pos_default_empty_image
|
||||
#: model:ir.model.fields,help:pos_default_empty_image.field_pos_config__iface_fixed_font_size
|
||||
#: model_terms:ir.ui.view,arch_db:pos_default_empty_image.pos_config_view_form
|
||||
msgid "Font size of the product name, when it has no image. Set '0' will set adaptative font-size, depending on the length of the name."
|
||||
msgstr ""
|
||||
|
||||
#. module: pos_default_empty_image
|
||||
#: model:ir.model.fields,field_description:pos_default_empty_image.field_product_product__has_image
|
||||
msgid "Has Image"
|
||||
msgstr ""
|
||||
|
||||
#. module: pos_default_empty_image
|
||||
#: model:ir.model,name:pos_default_empty_image.model_pos_config
|
||||
msgid "Point of Sale Configuration"
|
||||
msgstr ""
|
||||
|
||||
#. module: pos_default_empty_image
|
||||
#: model:ir.model,name:pos_default_empty_image.model_product_product
|
||||
msgid "Product"
|
||||
msgstr ""
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
from . import pos_config
|
||||
from . import product_template
|
||||
from . import product_product
|
||||
#from . import product_product
|
||||
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@ from odoo import models, fields, api
|
|||
class ProductProduct(models.Model):
|
||||
_inherit = 'product.product'
|
||||
|
||||
@api.multi
|
||||
@api.depends('image')
|
||||
def _compute_has_image(self):
|
||||
for product in self:
|
||||
|
|
|
@ -11,16 +11,16 @@ _logger = logging.getLogger(__name__)
|
|||
class ProductTemplate(models.Model):
|
||||
_inherit = "product.template"
|
||||
|
||||
subtitle = fields.Char('Subtítulo')
|
||||
subtitle = fields.Char('Subtitulo')
|
||||
editorial = fields.Char('Editorial')
|
||||
formato = fields.Char('Formato')
|
||||
pais_edicion = fields.Char('País de Edicion')
|
||||
colacion = fields.Char('Colación')
|
||||
pais_edicion = fields.Char('Pais de edicion')
|
||||
colacion = fields.Char('Colacion')
|
||||
autor = fields.Char('Autor')
|
||||
isbn = fields.Char('ISBN')
|
||||
coleccion = fields.Char('Colección')
|
||||
subcoleccion = fields.Char('Subcolección')
|
||||
coleccion = fields.Char('Coleccion')
|
||||
subcoleccion = fields.Char('Subcoleccion')
|
||||
idioma = fields.Char('Idioma')
|
||||
fecha_entrada = fields.Char('Fecha de entrada')
|
||||
fecha_edicion = fields.Char('Fecha de edición')
|
||||
genero = fields.Char('Género')
|
||||
genero = fields.Char('Genero')
|
||||
|
|
|
@ -7,7 +7,7 @@ odoo.define('product_library.product_library', function (require) {
|
|||
//var gui = require('point_of_sale.gui');
|
||||
//var _t = core._t;
|
||||
|
||||
models.load_fields("product.product", ['has_image']);
|
||||
//models.load_fields("product.product", ['has_image']);
|
||||
|
||||
/* ********************************************************
|
||||
Overload models.PosModel
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<!-- </t> -->
|
||||
</t>
|
||||
</t>
|
||||
|
||||
<!--
|
||||
<t t-name="ProductNoImage">
|
||||
<article class='product' t-att-data-product-id="product.id" tabindex="0" t-attf-aria-labelledby="article_product_#{product.id}">
|
||||
<t t-set="name_length" t-value="product.display_name.length" />
|
||||
|
@ -63,7 +63,7 @@
|
|||
</div>
|
||||
</article>
|
||||
</t>
|
||||
|
||||
-->
|
||||
</templates>
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<odoo>
|
||||
<record model="ir.ui.view" id="product_library_form_config">
|
||||
<field name="name">product.template.library.form</field>
|
||||
<field name="model">product.template</field>
|
||||
|
@ -27,5 +26,4 @@
|
|||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
</odoo>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<xpath expr="." position="inside">
|
||||
<script type="text/javascript" src="/product_library/static/src/js/models.js"></script>
|
||||
<script type="text/javascript" src="/product_library/static/src/js/db.js"/>
|
||||
<script type="text/javascript" src="/product_library/static/src/js/widgets.js"></script>
|
||||
<!-- <script type="text/javascript" src="/product_library/static/src/js/widgets.js"></script> -->
|
||||
</xpath>
|
||||
<xpath expr="//link[@id='pos-stylesheet']" position="after">
|
||||
<link
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
'name': 'Product Retail',
|
||||
'category': 'Product',
|
||||
'summary': 'Gestiona productos en distribución / Venta a minoristas',
|
||||
'version': '12.0.1.0.0',
|
||||
'version': "16.0.1.0.0",
|
||||
'description': """
|
||||
|
||||
Gestiona productos en distribución / Venta a minoristas
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
{
|
||||
'name': 'Product Sequence',
|
||||
'version': '12.0.2.0.2',
|
||||
'version': "16.0.1.0.0",
|
||||
'author': "Zikzakmedia SL,Sodexis,Odoo Community Association (OCA)",
|
||||
'website': 'https://github.com/OCA/product-attribute',
|
||||
'license': 'AGPL-3',
|
||||
|
|
|
@ -36,7 +36,6 @@ class ProductCategory(models.Model):
|
|||
}
|
||||
return vals
|
||||
|
||||
@api.multi
|
||||
def write(self, vals):
|
||||
prefix = vals.get("code_prefix")
|
||||
if prefix:
|
||||
|
|
|
@ -13,7 +13,7 @@ class ProductProduct(models.Model):
|
|||
default_code = fields.Char(
|
||||
required=True,
|
||||
default='/',
|
||||
track_visibility='onchange',
|
||||
tracking=True,
|
||||
help="Set to '/' and save if you want a new internal reference "
|
||||
"to be proposed."
|
||||
)
|
||||
|
@ -35,7 +35,6 @@ class ProductProduct(models.Model):
|
|||
vals['default_code'] = sequence.next_by_id()
|
||||
return super().create(vals)
|
||||
|
||||
@api.multi
|
||||
def write(self, vals):
|
||||
"""To assign a new internal reference, just write '/' on the field.
|
||||
Note this is up to the user, if the product category is changed,
|
||||
|
@ -55,7 +54,6 @@ class ProductProduct(models.Model):
|
|||
return True
|
||||
return super().write(vals)
|
||||
|
||||
@api.multi
|
||||
def copy(self, default=None):
|
||||
if default is None:
|
||||
default = {}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
from . import test_product_sequence
|
|
@ -1,140 +0,0 @@
|
|||
# Copyright 2016 Sodexis
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo.tests.common import TransactionCase
|
||||
from ..hooks import pre_init_hook
|
||||
|
||||
|
||||
class TestProductSequence(TransactionCase):
|
||||
"""Tests for creating product with and without Product Sequence"""
|
||||
|
||||
def setUp(self):
|
||||
super(TestProductSequence, self).setUp()
|
||||
self.product_product = self.env['product.product']
|
||||
self.product_category = self.env['product.category']
|
||||
self.product_template = self.env['product.template'].create({
|
||||
'name': 'Demo Product',
|
||||
})
|
||||
|
||||
def test_product_create_with_default_code(self):
|
||||
product = self.product_product.create(dict(
|
||||
name="Apple",
|
||||
default_code='PROD01'
|
||||
))
|
||||
self.assertEqual(product.default_code, 'PROD01')
|
||||
product_new = self.product_product.create(dict(
|
||||
name="Demo Apple",
|
||||
product_tmpl_id=self.product_template.id
|
||||
))
|
||||
self.assertTrue(product_new.default_code)
|
||||
|
||||
def test_product_create_without_default_code(self):
|
||||
product_1 = self.product_product.create(dict(
|
||||
name="Orange",
|
||||
default_code='/'))
|
||||
self.assertRegexpMatches(str(product_1.default_code), r'PR/*')
|
||||
|
||||
def test_product_copy(self):
|
||||
product_2 = self.product_product.create(dict(
|
||||
name="Apple",
|
||||
default_code='PROD02'
|
||||
))
|
||||
copy_product_2 = product_2.copy()
|
||||
self.assertEqual(copy_product_2.default_code, 'PROD02-copy')
|
||||
|
||||
def test_pre_init_hook(self):
|
||||
product_3 = self.product_product.create(dict(
|
||||
name="Apple",
|
||||
default_code='PROD03'
|
||||
))
|
||||
sql = "update product_product set default_code='/' where id=%s"
|
||||
self.cr.execute(sql, (product_3.id,))
|
||||
product_3.invalidate_cache()
|
||||
self.assertEqual(product_3.default_code, '/')
|
||||
pre_init_hook(self.cr)
|
||||
product_3.invalidate_cache()
|
||||
self.assertEqual(product_3.default_code, '!!mig!!%s' % (product_3.id,))
|
||||
|
||||
def test_product_category_sequence(self):
|
||||
categ_grocery = self.product_category.create(dict(
|
||||
name="Grocery",
|
||||
code_prefix="GRO",
|
||||
))
|
||||
self.assertTrue(categ_grocery.sequence_id)
|
||||
self.assertEqual(categ_grocery.sequence_id.prefix, "GRO")
|
||||
self.assertFalse(categ_grocery.sequence_id.company_id)
|
||||
product_3 = self.product_product.create(dict(
|
||||
name="Apple",
|
||||
categ_id=categ_grocery.id,
|
||||
))
|
||||
self.assertEqual(product_3.default_code[:3], "GRO")
|
||||
self.assertEqual(product_3.product_tmpl_id.default_code[:3], "GRO")
|
||||
categ_electronics = self.product_category.create(dict(
|
||||
name="Electronics",
|
||||
code_prefix="ELE",
|
||||
))
|
||||
product_3.write({'default_code': '/',
|
||||
'categ_id': categ_electronics.id})
|
||||
self.assertEqual(product_3.default_code[:3], "ELE")
|
||||
self.assertEqual(product_3.product_tmpl_id.default_code[:3], "ELE")
|
||||
|
||||
product_4 = self.product_product.create(dict(
|
||||
name="Truck",
|
||||
default_code='PROD04'
|
||||
))
|
||||
product_4.write({'default_code': '/'})
|
||||
self.assertTrue(product_4.categ_id, 'Category is not set.')
|
||||
|
||||
categ_car = self.product_category.create(dict(
|
||||
name="Car",
|
||||
code_prefix="CAR",
|
||||
))
|
||||
product_3.product_tmpl_id.categ_id = categ_car
|
||||
product_3.product_tmpl_id.default_code = '/'
|
||||
product_3.refresh()
|
||||
self.assertEqual(product_3.default_code[:3], "CAR")
|
||||
self.assertEqual(product_3.product_tmpl_id.default_code[:3], "CAR")
|
||||
categ_car.write(dict(
|
||||
name="Bike",
|
||||
code_prefix="BIK",
|
||||
))
|
||||
self.assertEqual(categ_car.sequence_id.prefix, "BIK")
|
||||
categ_car.sequence_id = False
|
||||
categ_car.write({'code_prefix': 'KIA'})
|
||||
self.assertEqual(categ_car.sequence_id.prefix, "KIA")
|
||||
|
||||
def test_product_parent_category_sequence(self):
|
||||
parent_categ = self.product_category.create(dict(
|
||||
name="Parents",
|
||||
code_prefix="PAR",
|
||||
))
|
||||
categ = self.product_category.create(dict(
|
||||
name="Child",
|
||||
parent_id=parent_categ.id,
|
||||
))
|
||||
|
||||
product_anna = self.product_product.create(dict(
|
||||
name="Anna",
|
||||
categ_id=categ.id,
|
||||
))
|
||||
self.assertEqual(product_anna.default_code[:2], "PR")
|
||||
self.assertEqual(product_anna.product_tmpl_id.default_code[:2], "PR")
|
||||
|
||||
self.env.user.company_id.use_parent_categories_to_determine_prefix = True
|
||||
|
||||
product_claudia = self.product_product.create(dict(
|
||||
name="Claudia",
|
||||
categ_id=categ.id,
|
||||
))
|
||||
self.assertEqual(product_claudia.default_code[:3], "PAR")
|
||||
self.assertEqual(product_claudia.product_tmpl_id.default_code[:3], "PAR")
|
||||
|
||||
def test_product_copy_with_default_values(self):
|
||||
product_2 = self.product_product.create(dict(
|
||||
name="Apple",
|
||||
default_code='PROD02'
|
||||
))
|
||||
copy_product_2 = product_2.copy({
|
||||
'default_code': 'product test sequence',
|
||||
})
|
||||
self.assertEqual(copy_product_2.default_code, 'product test sequence')
|
|
@ -1,103 +0,0 @@
|
|||
=============
|
||||
Product State
|
||||
=============
|
||||
|
||||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
||||
:target: https://odoo-community.org/page/development-status
|
||||
:alt: Beta
|
||||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/product-attribute/tree/12.0/product_state
|
||||
:alt: OCA/product-attribute
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/product-attribute-12-0/product-attribute-12-0-product_state
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||
:target: https://runbot.odoo-community.org/runbot/135/12.0
|
||||
:alt: Try me on Runbot
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
This module introduces the state field on product template and allows simple product life cycle:
|
||||
|
||||
- draft: In Development
|
||||
- sellable: Normal
|
||||
- end: End of Lifecycle
|
||||
- obsolete: Obsolete
|
||||
|
||||
**Table of contents**
|
||||
|
||||
.. contents::
|
||||
:local:
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
To create a new state:
|
||||
|
||||
#. Go to *Sales > Configuration > Products > Product States*.
|
||||
#. You can set its name and a description.
|
||||
|
||||
To add a product to a state:
|
||||
|
||||
#. Go to the product itself and edit.
|
||||
#. You can select the desired status in the list of buttons above the form.
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/product-attribute/issues/new?body=module:%20product_state%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Authors
|
||||
~~~~~~~
|
||||
|
||||
* ACSONE SA/NV
|
||||
|
||||
Contributors
|
||||
~~~~~~~~~~~~
|
||||
|
||||
* Cedric Pigeon <cedric.pigeon@acsone.eu>
|
||||
* Alexandre Saunier <alexandre.saunier@camptocamp.com>
|
||||
* Nikul Chaudhary <nikulchaudhary2112@gmail.com>
|
||||
* Eduardo Magdalena <emagdalena@c2i.es> (C2i Change 2 improve http://www.c2i.es)
|
||||
* Andrii Skrypka <andrijskrypa@ukr.net>
|
||||
|
||||
Maintainers
|
||||
~~~~~~~~~~~
|
||||
|
||||
This module is maintained by the OCA.
|
||||
|
||||
.. image:: https://odoo-community.org/logo.png
|
||||
:alt: Odoo Community Association
|
||||
:target: https://odoo-community.org
|
||||
|
||||
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.
|
||||
|
||||
.. |maintainer-emagdalenaC2i| image:: https://github.com/emagdalenaC2i.png?size=40px
|
||||
:target: https://github.com/emagdalenaC2i
|
||||
:alt: emagdalenaC2i
|
||||
|
||||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
||||
|
||||
|maintainer-emagdalenaC2i|
|
||||
|
||||
This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/12.0/product_state>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@ -1,4 +0,0 @@
|
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import models
|
||||
from .hooks import post_init_hook
|
|
@ -1,20 +0,0 @@
|
|||
# Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
{
|
||||
"name": "Product State",
|
||||
"summary": """
|
||||
Module introducing a state field on product template""",
|
||||
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/product-attribute",
|
||||
"category": "Product",
|
||||
"version": "12.0.2.0.2",
|
||||
"license": "AGPL-3",
|
||||
"depends": ["sale", "product"],
|
||||
"data": [
|
||||
"data/product_state_data.xml",
|
||||
"security/ir.model.access.csv",
|
||||
"views/product_views.xml",
|
||||
],
|
||||
"maintainers": ["emagdalenaC2i"],
|
||||
"post_init_hook": "post_init_hook",
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<!-- States -->
|
||||
<record id="product_state_draft" model="product.state">
|
||||
<field name="code">draft</field>
|
||||
<field name="name">In Development</field>
|
||||
<field name="sequence">10</field>
|
||||
</record>
|
||||
<record id="product_state_sellable" model="product.state">
|
||||
<field name="code">sellable</field>
|
||||
<field name="name">Normal</field>
|
||||
<field name="sequence">20</field>
|
||||
</record>
|
||||
<record id="product_state_end" model="product.state">
|
||||
<field name="code">end</field>
|
||||
<field name="name">End of Lifecycle</field>
|
||||
<field name="sequence">30</field>
|
||||
</record>
|
||||
<record id="product_state_obsolete" model="product.state">
|
||||
<field name="code">obsolete</field>
|
||||
<field name="name">Obsolete</field>
|
||||
<field name="sequence">40</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
|
@ -1,17 +0,0 @@
|
|||
# Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# Copyright 2020 Tecnativa - Pedro M. Baeza
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
from odoo import api, SUPERUSER_ID
|
||||
|
||||
|
||||
def post_init_hook(cr, registry):
|
||||
""" This hook is used to add a state on existing products
|
||||
when module product_state is installed.
|
||||
"""
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
product_without_state = env["product.template"].with_context(
|
||||
active_test=False,
|
||||
).search(
|
||||
[("product_state_id", "=", False), ("state", "!=", False)]
|
||||
)
|
||||
product_without_state._inverse_product_state()
|
|
@ -1,168 +0,0 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * product_state
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2021-02-15 13:45+0000\n"
|
||||
"Last-Translator: claudiagn <claudia.gargallo@qubiq.es>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: ca\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.3.2\n"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Code"
|
||||
msgstr "Codi"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Creat per"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Creat el"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__description
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Description"
|
||||
msgstr "Descripció"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nom visible"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_end
|
||||
msgid "End of Lifecycle"
|
||||
msgstr "Final del cicle de vida"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_draft
|
||||
msgid "In Development"
|
||||
msgstr "ID de desenvolupament"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última modificació en"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "última actualització per"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Última actualització el"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_sellable
|
||||
msgid "Normal"
|
||||
msgstr "Normal"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__products_count
|
||||
msgid "Number of products"
|
||||
msgstr "Nombre de productes"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_obsolete
|
||||
msgid "Obsolete"
|
||||
msgstr "Obsolet"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_single_product_state
|
||||
#: model:ir.model,name:product_state.model_product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view
|
||||
msgid "Product State"
|
||||
msgstr "Estat del producte"
|
||||
|
||||
#. module: product_state
|
||||
#: sql_constraint:product.state:0
|
||||
msgid "Product State Code must be unique."
|
||||
msgstr "El codi d'estat del producte ha de ser únic."
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.ui.menu,name:product_state.menu_product_state
|
||||
msgid "Product States"
|
||||
msgstr "Estats dels productes"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__state
|
||||
msgid "Product Status"
|
||||
msgstr "Estat del producte"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model,name:product_state.model_product_template
|
||||
msgid "Product Template"
|
||||
msgstr "Plantilla de producte"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban
|
||||
msgid "Products"
|
||||
msgstr "Productes"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,help:product_state.field_product_template__product_state_id
|
||||
msgid "Select a state for this product"
|
||||
msgstr "Selecciona un estat per aquest producte"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__sequence
|
||||
msgid "Sequence"
|
||||
msgstr "Seqüència"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state
|
||||
msgid "State"
|
||||
msgstr "Estat"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__code
|
||||
msgid "State Code"
|
||||
msgstr "Codi d'estat"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__name
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "State Name"
|
||||
msgstr "Nom d'estat"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_state_products
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids
|
||||
msgid "State Products"
|
||||
msgstr "Productes estatals"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_state__sequence
|
||||
msgid "Used to order the States"
|
||||
msgstr "S'utilitza per ordenar els estats"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_tree
|
||||
msgid "product.state"
|
||||
msgstr "product.state"
|
|
@ -1,174 +0,0 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * product_state
|
||||
#
|
||||
# Translators:
|
||||
# Niki Waibel <niki.waibel@gmail.com>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-05-17 02:38+0000\n"
|
||||
"PO-Revision-Date: 2017-05-17 02:38+0000\n"
|
||||
"Last-Translator: Niki Waibel <niki.waibel@gmail.com>, 2017\n"
|
||||
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
|
||||
"Language: de\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid
|
||||
msgid "Created by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_date
|
||||
msgid "Created on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__description
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_end
|
||||
msgid "End of Lifecycle"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_draft
|
||||
msgid "In Development"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_sellable
|
||||
msgid "Normal"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__products_count
|
||||
msgid "Number of products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_obsolete
|
||||
msgid "Obsolete"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_single_product_state
|
||||
#: model:ir.model,name:product_state.model_product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view
|
||||
#, fuzzy
|
||||
msgid "Product State"
|
||||
msgstr "Produktvorlage"
|
||||
|
||||
#. module: product_state
|
||||
#: sql_constraint:product.state:0
|
||||
msgid "Product State Code must be unique."
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.ui.menu,name:product_state.menu_product_state
|
||||
#, fuzzy
|
||||
msgid "Product States"
|
||||
msgstr "Produktvorlage"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__state
|
||||
#, fuzzy
|
||||
msgid "Product Status"
|
||||
msgstr "Produktvorlage"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model,name:product_state.model_product_template
|
||||
msgid "Product Template"
|
||||
msgstr "Produktvorlage"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban
|
||||
msgid "Products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,help:product_state.field_product_template__product_state_id
|
||||
msgid "Select a state for this product"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__sequence
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state
|
||||
msgid "State"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__code
|
||||
msgid "State Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__name
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "State Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_state_products
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids
|
||||
msgid "State Products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_state__sequence
|
||||
msgid "Used to order the States"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_tree
|
||||
#, fuzzy
|
||||
msgid "product.state"
|
||||
msgstr "Produktvorlage"
|
|
@ -1,172 +0,0 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * product_state
|
||||
#
|
||||
# Translators:
|
||||
# Pedro M. Baeza <pedro.baeza@gmail.com>, 2018
|
||||
# enjolras <yo@miguelrevilla.com>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-01-29 08:49+0000\n"
|
||||
"PO-Revision-Date: 2020-09-15 12:00+0000\n"
|
||||
"Last-Translator: claudiagn <claudia.gargallo@qubiq.es>\n"
|
||||
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 3.10\n"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Code"
|
||||
msgstr "Código"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Creado por"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Creado en"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__description
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Description"
|
||||
msgstr "Descripción"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nombre mostrado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_end
|
||||
msgid "End of Lifecycle"
|
||||
msgstr "Fin del ciclo de vida"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_draft
|
||||
msgid "In Development"
|
||||
msgstr "En desarrollo"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última modificación en"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Última actualización por"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Última actualización en"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_sellable
|
||||
msgid "Normal"
|
||||
msgstr "Normal"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__products_count
|
||||
msgid "Number of products"
|
||||
msgstr "Número de productos"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_obsolete
|
||||
msgid "Obsolete"
|
||||
msgstr "Obsoleto"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_single_product_state
|
||||
#: model:ir.model,name:product_state.model_product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view
|
||||
msgid "Product State"
|
||||
msgstr "Estado del producto"
|
||||
|
||||
#. module: product_state
|
||||
#: sql_constraint:product.state:0
|
||||
msgid "Product State Code must be unique."
|
||||
msgstr "El código de estado del producto debe ser único."
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.ui.menu,name:product_state.menu_product_state
|
||||
msgid "Product States"
|
||||
msgstr "Estados del producto"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__state
|
||||
msgid "Product Status"
|
||||
msgstr "Estado de producto"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model,name:product_state.model_product_template
|
||||
msgid "Product Template"
|
||||
msgstr "Plantilla de producto"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban
|
||||
msgid "Products"
|
||||
msgstr "Productos"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,help:product_state.field_product_template__product_state_id
|
||||
msgid "Select a state for this product"
|
||||
msgstr "Selecciona un estado para este producto"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__sequence
|
||||
msgid "Sequence"
|
||||
msgstr "Secuencia"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state
|
||||
msgid "State"
|
||||
msgstr "Estado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__code
|
||||
msgid "State Code"
|
||||
msgstr "Código del estado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__name
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "State Name"
|
||||
msgstr "Nombre del estado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_state_products
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids
|
||||
msgid "State Products"
|
||||
msgstr "Productos del estado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_state__sequence
|
||||
msgid "Used to order the States"
|
||||
msgstr "Utilizado para pedir a los estados"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_tree
|
||||
msgid "product.state"
|
||||
msgstr "producto.estado"
|
|
@ -1,177 +0,0 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * product_state
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
# guillaume bauer <guillaume.bauer@syentys.com>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-07-29 02:55+0000\n"
|
||||
"PO-Revision-Date: 2017-07-29 02:55+0000\n"
|
||||
"Last-Translator: guillaume bauer <guillaume.bauer@syentys.com>, 2017\n"
|
||||
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
|
||||
"Language: fr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid
|
||||
msgid "Created by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_date
|
||||
msgid "Created on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__description
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_end
|
||||
msgid "End of Lifecycle"
|
||||
msgstr "Fin de vie"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_draft
|
||||
msgid "In Development"
|
||||
msgstr "Phase de recherche et de développement"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_sellable
|
||||
msgid "Normal"
|
||||
msgstr "Normal"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__products_count
|
||||
msgid "Number of products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_obsolete
|
||||
msgid "Obsolete"
|
||||
msgstr "Obsolète"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_single_product_state
|
||||
#: model:ir.model,name:product_state.model_product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view
|
||||
#, fuzzy
|
||||
msgid "Product State"
|
||||
msgstr "Modèle de produit"
|
||||
|
||||
#. module: product_state
|
||||
#: sql_constraint:product.state:0
|
||||
msgid "Product State Code must be unique."
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.ui.menu,name:product_state.menu_product_state
|
||||
#, fuzzy
|
||||
msgid "Product States"
|
||||
msgstr "Modèle de produit"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__state
|
||||
#, fuzzy
|
||||
msgid "Product Status"
|
||||
msgstr "Modèle de produit"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model,name:product_state.model_product_template
|
||||
msgid "Product Template"
|
||||
msgstr "Modèle de produit"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban
|
||||
msgid "Products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,help:product_state.field_product_template__product_state_id
|
||||
msgid "Select a state for this product"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__sequence
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state
|
||||
#, fuzzy
|
||||
msgid "State"
|
||||
msgstr "Statut"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__code
|
||||
msgid "State Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__name
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "State Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_state_products
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids
|
||||
#, fuzzy
|
||||
msgid "State Products"
|
||||
msgstr "Statut"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_state__sequence
|
||||
msgid "Used to order the States"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_tree
|
||||
#, fuzzy
|
||||
msgid "product.state"
|
||||
msgstr "Modèle de produit"
|
|
@ -1,177 +0,0 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * product_state
|
||||
#
|
||||
# Translators:
|
||||
# Bole <bole@dajmi5.com>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-01-29 08:49+0000\n"
|
||||
"PO-Revision-Date: 2018-01-29 08:49+0000\n"
|
||||
"Last-Translator: Bole <bole@dajmi5.com>, 2018\n"
|
||||
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
|
||||
"Language: hr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid
|
||||
msgid "Created by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_date
|
||||
msgid "Created on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__description
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_end
|
||||
msgid "End of Lifecycle"
|
||||
msgstr "Kraj životnog ciklusa"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_draft
|
||||
msgid "In Development"
|
||||
msgstr "U razvoju"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_sellable
|
||||
msgid "Normal"
|
||||
msgstr "Normalno"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__products_count
|
||||
msgid "Number of products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_obsolete
|
||||
msgid "Obsolete"
|
||||
msgstr "Zastarjelo"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_single_product_state
|
||||
#: model:ir.model,name:product_state.model_product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view
|
||||
#, fuzzy
|
||||
msgid "Product State"
|
||||
msgstr "Predložak proizvoda"
|
||||
|
||||
#. module: product_state
|
||||
#: sql_constraint:product.state:0
|
||||
msgid "Product State Code must be unique."
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.ui.menu,name:product_state.menu_product_state
|
||||
#, fuzzy
|
||||
msgid "Product States"
|
||||
msgstr "Predložak proizvoda"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__state
|
||||
#, fuzzy
|
||||
msgid "Product Status"
|
||||
msgstr "Predložak proizvoda"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model,name:product_state.model_product_template
|
||||
msgid "Product Template"
|
||||
msgstr "Predložak proizvoda"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban
|
||||
msgid "Products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,help:product_state.field_product_template__product_state_id
|
||||
msgid "Select a state for this product"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__sequence
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state
|
||||
#, fuzzy
|
||||
msgid "State"
|
||||
msgstr "Status"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__code
|
||||
msgid "State Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__name
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "State Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_state_products
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids
|
||||
#, fuzzy
|
||||
msgid "State Products"
|
||||
msgstr "Status"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_state__sequence
|
||||
msgid "Used to order the States"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_tree
|
||||
#, fuzzy
|
||||
msgid "product.state"
|
||||
msgstr "Predložak proizvoda"
|
|
@ -1,175 +0,0 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * product_state
|
||||
#
|
||||
# Translators:
|
||||
# Peter Hageman <hageman.p@gmail.com>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-05-27 04:44+0000\n"
|
||||
"PO-Revision-Date: 2017-05-27 04:44+0000\n"
|
||||
"Last-Translator: Peter Hageman <hageman.p@gmail.com>, 2017\n"
|
||||
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/"
|
||||
"teams/23907/nl_NL/)\n"
|
||||
"Language: nl_NL\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid
|
||||
msgid "Created by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_date
|
||||
msgid "Created on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__description
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_end
|
||||
msgid "End of Lifecycle"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_draft
|
||||
msgid "In Development"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_sellable
|
||||
msgid "Normal"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__products_count
|
||||
msgid "Number of products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_obsolete
|
||||
msgid "Obsolete"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_single_product_state
|
||||
#: model:ir.model,name:product_state.model_product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view
|
||||
#, fuzzy
|
||||
msgid "Product State"
|
||||
msgstr "Productsjabloon"
|
||||
|
||||
#. module: product_state
|
||||
#: sql_constraint:product.state:0
|
||||
msgid "Product State Code must be unique."
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.ui.menu,name:product_state.menu_product_state
|
||||
#, fuzzy
|
||||
msgid "Product States"
|
||||
msgstr "Productsjabloon"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__state
|
||||
#, fuzzy
|
||||
msgid "Product Status"
|
||||
msgstr "Productsjabloon"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model,name:product_state.model_product_template
|
||||
msgid "Product Template"
|
||||
msgstr "Productsjabloon"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban
|
||||
msgid "Products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,help:product_state.field_product_template__product_state_id
|
||||
msgid "Select a state for this product"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__sequence
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state
|
||||
msgid "State"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__code
|
||||
msgid "State Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__name
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "State Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_state_products
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids
|
||||
msgid "State Products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_state__sequence
|
||||
msgid "Used to order the States"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_tree
|
||||
#, fuzzy
|
||||
msgid "product.state"
|
||||
msgstr "Productsjabloon"
|
|
@ -1,168 +0,0 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * product_state
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2020-10-18 21:08+0000\n"
|
||||
"Last-Translator: Pedro Castro Silva <pedrocs@exo.pt>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: pt\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||
"X-Generator: Weblate 3.10\n"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Code"
|
||||
msgstr "Código"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Criado por"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Criado em"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__description
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Description"
|
||||
msgstr "Descrição"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nome a Exibir"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_end
|
||||
msgid "End of Lifecycle"
|
||||
msgstr "Fim de Ciclo de Vida"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__id
|
||||
msgid "ID"
|
||||
msgstr "Id"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_draft
|
||||
msgid "In Development"
|
||||
msgstr "Em Desenvolvimento"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última Modificação em"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Última Atualização por"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Última Atualização em"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_sellable
|
||||
msgid "Normal"
|
||||
msgstr "Normal"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__products_count
|
||||
msgid "Number of products"
|
||||
msgstr "Número de Produtos"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_obsolete
|
||||
msgid "Obsolete"
|
||||
msgstr "Obsoleto"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_single_product_state
|
||||
#: model:ir.model,name:product_state.model_product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view
|
||||
msgid "Product State"
|
||||
msgstr "Estado do Produto"
|
||||
|
||||
#. module: product_state
|
||||
#: sql_constraint:product.state:0
|
||||
msgid "Product State Code must be unique."
|
||||
msgstr "O Código de Estado do Produto tem que ser único."
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.ui.menu,name:product_state.menu_product_state
|
||||
msgid "Product States"
|
||||
msgstr "Estados de Produtos"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__state
|
||||
msgid "Product Status"
|
||||
msgstr "Estado de Produto"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model,name:product_state.model_product_template
|
||||
msgid "Product Template"
|
||||
msgstr "Modelo de Produto"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban
|
||||
msgid "Products"
|
||||
msgstr "Produtos"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,help:product_state.field_product_template__product_state_id
|
||||
msgid "Select a state for this product"
|
||||
msgstr "Selecione um estado para este produto"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__sequence
|
||||
msgid "Sequence"
|
||||
msgstr "Sequência"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state
|
||||
msgid "State"
|
||||
msgstr "Estado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__code
|
||||
msgid "State Code"
|
||||
msgstr "Código do Estado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__name
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "State Name"
|
||||
msgstr "Nome do Estado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_state_products
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids
|
||||
msgid "State Products"
|
||||
msgstr "Produtos do Estado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_state__sequence
|
||||
msgid "Used to order the States"
|
||||
msgstr "Usado para ordenar os Estados"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_tree
|
||||
msgid "product.state"
|
||||
msgstr ""
|
|
@ -1,175 +0,0 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * product_state
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-01-27 03:49+0000\n"
|
||||
"PO-Revision-Date: 2018-01-27 03:49+0000\n"
|
||||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2018\n"
|
||||
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
|
||||
"Language: sl\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
|
||||
"%100==4 ? 2 : 3);\n"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid
|
||||
msgid "Created by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_date
|
||||
msgid "Created on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__description
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_end
|
||||
msgid "End of Lifecycle"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_draft
|
||||
msgid "In Development"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_sellable
|
||||
msgid "Normal"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__products_count
|
||||
msgid "Number of products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_obsolete
|
||||
msgid "Obsolete"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_single_product_state
|
||||
#: model:ir.model,name:product_state.model_product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view
|
||||
#, fuzzy
|
||||
msgid "Product State"
|
||||
msgstr "Predloga proizvoda"
|
||||
|
||||
#. module: product_state
|
||||
#: sql_constraint:product.state:0
|
||||
msgid "Product State Code must be unique."
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.ui.menu,name:product_state.menu_product_state
|
||||
#, fuzzy
|
||||
msgid "Product States"
|
||||
msgstr "Predloga proizvoda"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__state
|
||||
#, fuzzy
|
||||
msgid "Product Status"
|
||||
msgstr "Predloga proizvoda"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model,name:product_state.model_product_template
|
||||
msgid "Product Template"
|
||||
msgstr "Predloga proizvoda"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban
|
||||
msgid "Products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,help:product_state.field_product_template__product_state_id
|
||||
msgid "Select a state for this product"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__sequence
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state
|
||||
msgid "State"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__code
|
||||
msgid "State Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__name
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "State Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_state_products
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids
|
||||
msgid "State Products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_state__sequence
|
||||
msgid "Used to order the States"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_tree
|
||||
#, fuzzy
|
||||
msgid "product.state"
|
||||
msgstr "Predloga proizvoda"
|
|
@ -1,7 +0,0 @@
|
|||
# Copyright 2020 Tecnativa - Pedro M. Baeza
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
from odoo.addons.product_state.hooks import post_init_hook
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
post_init_hook(cr, False)
|
|
@ -1,4 +0,0 @@
|
|||
# Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import product_template
|
|
@ -1,79 +0,0 @@
|
|||
# Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# Copyright 2020 Tecnativa - Pedro M. Baeza
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import api, models, fields
|
||||
|
||||
|
||||
class ProductState(models.Model):
|
||||
_name = "product.state"
|
||||
_description = "Product State"
|
||||
_order = "sequence, id"
|
||||
|
||||
name = fields.Char("State Name", required=True, translate=True)
|
||||
code = fields.Char("State Code", required=True)
|
||||
sequence = fields.Integer("Sequence", help="Used to order the States", default=25)
|
||||
description = fields.Text(translate=True)
|
||||
product_ids = fields.One2many(
|
||||
"product.template", "product_state_id", string="State Products",
|
||||
)
|
||||
products_count = fields.Integer(
|
||||
string="Number of products", compute="_compute_products_count",
|
||||
)
|
||||
|
||||
_sql_constraints = [
|
||||
("code_unique", "UNIQUE(code)", "Product State Code must be unique.")
|
||||
]
|
||||
|
||||
@api.depends("product_ids")
|
||||
def _compute_products_count(self):
|
||||
data = self.env["product.template"].read_group(
|
||||
[("product_state_id", "in", self.ids)],
|
||||
["product_state_id"],
|
||||
["product_state_id"],
|
||||
)
|
||||
mapped_data = {
|
||||
record["product_state_id"][0]: record["product_state_id_count"]
|
||||
for record in data
|
||||
}
|
||||
for state in self:
|
||||
state.products_count = mapped_data.get(state.id, 0)
|
||||
|
||||
|
||||
class ProductTemplate(models.Model):
|
||||
_inherit = "product.template"
|
||||
|
||||
state = fields.Char(
|
||||
string="Product Status",
|
||||
index=True,
|
||||
compute="_compute_product_state",
|
||||
inverse="_inverse_product_state",
|
||||
store=True,
|
||||
)
|
||||
product_state_id = fields.Many2one(
|
||||
"product.state", string="State", help="Select a state for this product",
|
||||
)
|
||||
|
||||
@api.depends("product_state_id")
|
||||
def _compute_product_state(self):
|
||||
for product_tmpl in self:
|
||||
product_tmpl.state = product_tmpl.product_state_id.code
|
||||
|
||||
def _inverse_product_state(self):
|
||||
ProductState = self.env["product.state"]
|
||||
state_mapping = {}
|
||||
for product_tmpl in self.filtered("state"):
|
||||
product_state = state_mapping.get(product_tmpl.state)
|
||||
if not product_state:
|
||||
product_state = ProductState.search(
|
||||
[("code", "=", product_tmpl.state)], limit=1
|
||||
)
|
||||
if not product_state:
|
||||
product_state = ProductState.create({
|
||||
"name": product_tmpl.state,
|
||||
"code": product_tmpl.state,
|
||||
})
|
||||
state_mapping[product_tmpl.state] = product_state
|
||||
if product_tmpl.product_state_id != product_state:
|
||||
product_tmpl.product_state_id = product_state
|
||||
self.filtered(lambda x: not x.state).write({'product_state_id': False})
|
|
@ -1,5 +0,0 @@
|
|||
* Cedric Pigeon <cedric.pigeon@acsone.eu>
|
||||
* Alexandre Saunier <alexandre.saunier@camptocamp.com>
|
||||
* Nikul Chaudhary <nikulchaudhary2112@gmail.com>
|
||||
* Eduardo Magdalena <emagdalena@c2i.es> (C2i Change 2 improve http://www.c2i.es)
|
||||
* Andrii Skrypka <andrijskrypa@ukr.net>
|
|
@ -1,6 +0,0 @@
|
|||
This module introduces the state field on product template and allows simple product life cycle:
|
||||
|
||||
- draft: In Development
|
||||
- sellable: Normal
|
||||
- end: End of Lifecycle
|
||||
- obsolete: Obsolete
|
|
@ -1,9 +0,0 @@
|
|||
To create a new state:
|
||||
|
||||
#. Go to *Sales > Configuration > Products > Product States*.
|
||||
#. You can set its name and a description.
|
||||
|
||||
To add a product to a state:
|
||||
|
||||
#. Go to the product itself and edit.
|
||||
#. You can select the desired status in the list of buttons above the form.
|
|
@ -1,3 +0,0 @@
|
|||
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
|
||||
"access_product_state_product_manager","product.state","model_product_state","base.group_partner_manager",1,1,1,1
|
||||
"access_product_state_public","product.state.public","model_product_state",,1,0,0,0
|
|
Binary file not shown.
Before Width: | Height: | Size: 9.2 KiB |
|
@ -1,445 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
||||
<title>Product State</title>
|
||||
<style type="text/css">
|
||||
|
||||
/*
|
||||
:Author: David Goodger (goodger@python.org)
|
||||
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
|
||||
:Copyright: This stylesheet has been placed in the public domain.
|
||||
|
||||
Default cascading style sheet for the HTML output of Docutils.
|
||||
|
||||
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
|
||||
customize this style sheet.
|
||||
*/
|
||||
|
||||
/* used to remove borders from tables and images */
|
||||
.borderless, table.borderless td, table.borderless th {
|
||||
border: 0 }
|
||||
|
||||
table.borderless td, table.borderless th {
|
||||
/* Override padding for "table.docutils td" with "! important".
|
||||
The right padding separates the table cells. */
|
||||
padding: 0 0.5em 0 0 ! important }
|
||||
|
||||
.first {
|
||||
/* Override more specific margin styles with "! important". */
|
||||
margin-top: 0 ! important }
|
||||
|
||||
.last, .with-subtitle {
|
||||
margin-bottom: 0 ! important }
|
||||
|
||||
.hidden {
|
||||
display: none }
|
||||
|
||||
.subscript {
|
||||
vertical-align: sub;
|
||||
font-size: smaller }
|
||||
|
||||
.superscript {
|
||||
vertical-align: super;
|
||||
font-size: smaller }
|
||||
|
||||
a.toc-backref {
|
||||
text-decoration: none ;
|
||||
color: black }
|
||||
|
||||
blockquote.epigraph {
|
||||
margin: 2em 5em ; }
|
||||
|
||||
dl.docutils dd {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Uncomment (and remove this text!) to get bold-faced definition list terms
|
||||
dl.docutils dt {
|
||||
font-weight: bold }
|
||||
*/
|
||||
|
||||
div.abstract {
|
||||
margin: 2em 5em }
|
||||
|
||||
div.abstract p.topic-title {
|
||||
font-weight: bold ;
|
||||
text-align: center }
|
||||
|
||||
div.admonition, div.attention, div.caution, div.danger, div.error,
|
||||
div.hint, div.important, div.note, div.tip, div.warning {
|
||||
margin: 2em ;
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.admonition p.admonition-title, div.hint p.admonition-title,
|
||||
div.important p.admonition-title, div.note p.admonition-title,
|
||||
div.tip p.admonition-title {
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
div.attention p.admonition-title, div.caution p.admonition-title,
|
||||
div.danger p.admonition-title, div.error p.admonition-title,
|
||||
div.warning p.admonition-title, .code .error {
|
||||
color: red ;
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
/* Uncomment (and remove this text!) to get reduced vertical space in
|
||||
compound paragraphs.
|
||||
div.compound .compound-first, div.compound .compound-middle {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
div.compound .compound-last, div.compound .compound-middle {
|
||||
margin-top: 0.5em }
|
||||
*/
|
||||
|
||||
div.dedication {
|
||||
margin: 2em 5em ;
|
||||
text-align: center ;
|
||||
font-style: italic }
|
||||
|
||||
div.dedication p.topic-title {
|
||||
font-weight: bold ;
|
||||
font-style: normal }
|
||||
|
||||
div.figure {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
div.footer, div.header {
|
||||
clear: both;
|
||||
font-size: smaller }
|
||||
|
||||
div.line-block {
|
||||
display: block ;
|
||||
margin-top: 1em ;
|
||||
margin-bottom: 1em }
|
||||
|
||||
div.line-block div.line-block {
|
||||
margin-top: 0 ;
|
||||
margin-bottom: 0 ;
|
||||
margin-left: 1.5em }
|
||||
|
||||
div.sidebar {
|
||||
margin: 0 0 0.5em 1em ;
|
||||
border: medium outset ;
|
||||
padding: 1em ;
|
||||
background-color: #ffffee ;
|
||||
width: 40% ;
|
||||
float: right ;
|
||||
clear: right }
|
||||
|
||||
div.sidebar p.rubric {
|
||||
font-family: sans-serif ;
|
||||
font-size: medium }
|
||||
|
||||
div.system-messages {
|
||||
margin: 5em }
|
||||
|
||||
div.system-messages h1 {
|
||||
color: red }
|
||||
|
||||
div.system-message {
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.system-message p.system-message-title {
|
||||
color: red ;
|
||||
font-weight: bold }
|
||||
|
||||
div.topic {
|
||||
margin: 2em }
|
||||
|
||||
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
|
||||
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
|
||||
margin-top: 0.4em }
|
||||
|
||||
h1.title {
|
||||
text-align: center }
|
||||
|
||||
h2.subtitle {
|
||||
text-align: center }
|
||||
|
||||
hr.docutils {
|
||||
width: 75% }
|
||||
|
||||
img.align-left, .figure.align-left, object.align-left, table.align-left {
|
||||
clear: left ;
|
||||
float: left ;
|
||||
margin-right: 1em }
|
||||
|
||||
img.align-right, .figure.align-right, object.align-right, table.align-right {
|
||||
clear: right ;
|
||||
float: right ;
|
||||
margin-left: 1em }
|
||||
|
||||
img.align-center, .figure.align-center, object.align-center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table.align-center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left }
|
||||
|
||||
.align-center {
|
||||
clear: both ;
|
||||
text-align: center }
|
||||
|
||||
.align-right {
|
||||
text-align: right }
|
||||
|
||||
/* reset inner alignment in figures */
|
||||
div.align-right {
|
||||
text-align: inherit }
|
||||
|
||||
/* div.align-center * { */
|
||||
/* text-align: left } */
|
||||
|
||||
.align-top {
|
||||
vertical-align: top }
|
||||
|
||||
.align-middle {
|
||||
vertical-align: middle }
|
||||
|
||||
.align-bottom {
|
||||
vertical-align: bottom }
|
||||
|
||||
ol.simple, ul.simple {
|
||||
margin-bottom: 1em }
|
||||
|
||||
ol.arabic {
|
||||
list-style: decimal }
|
||||
|
||||
ol.loweralpha {
|
||||
list-style: lower-alpha }
|
||||
|
||||
ol.upperalpha {
|
||||
list-style: upper-alpha }
|
||||
|
||||
ol.lowerroman {
|
||||
list-style: lower-roman }
|
||||
|
||||
ol.upperroman {
|
||||
list-style: upper-roman }
|
||||
|
||||
p.attribution {
|
||||
text-align: right ;
|
||||
margin-left: 50% }
|
||||
|
||||
p.caption {
|
||||
font-style: italic }
|
||||
|
||||
p.credits {
|
||||
font-style: italic ;
|
||||
font-size: smaller }
|
||||
|
||||
p.label {
|
||||
white-space: nowrap }
|
||||
|
||||
p.rubric {
|
||||
font-weight: bold ;
|
||||
font-size: larger ;
|
||||
color: maroon ;
|
||||
text-align: center }
|
||||
|
||||
p.sidebar-title {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold ;
|
||||
font-size: larger }
|
||||
|
||||
p.sidebar-subtitle {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
p.topic-title {
|
||||
font-weight: bold }
|
||||
|
||||
pre.address {
|
||||
margin-bottom: 0 ;
|
||||
margin-top: 0 ;
|
||||
font: inherit }
|
||||
|
||||
pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
pre.code .ln { color: grey; } /* line numbers */
|
||||
pre.code, code { background-color: #eeeeee }
|
||||
pre.code .comment, code .comment { color: #5C6576 }
|
||||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
||||
pre.code .literal.string, code .literal.string { color: #0C5404 }
|
||||
pre.code .name.builtin, code .name.builtin { color: #352B84 }
|
||||
pre.code .deleted, code .deleted { background-color: #DEB0A1}
|
||||
pre.code .inserted, code .inserted { background-color: #A3D289}
|
||||
|
||||
span.classifier {
|
||||
font-family: sans-serif ;
|
||||
font-style: oblique }
|
||||
|
||||
span.classifier-delimiter {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
span.interpreted {
|
||||
font-family: sans-serif }
|
||||
|
||||
span.option {
|
||||
white-space: nowrap }
|
||||
|
||||
span.pre {
|
||||
white-space: pre }
|
||||
|
||||
span.problematic {
|
||||
color: red }
|
||||
|
||||
span.section-subtitle {
|
||||
/* font-size relative to parent (h1..h6 element) */
|
||||
font-size: 80% }
|
||||
|
||||
table.citation {
|
||||
border-left: solid 1px gray;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docinfo {
|
||||
margin: 2em 4em }
|
||||
|
||||
table.docutils {
|
||||
margin-top: 0.5em ;
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
table.footnote {
|
||||
border-left: solid 1px black;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docutils td, table.docutils th,
|
||||
table.docinfo td, table.docinfo th {
|
||||
padding-left: 0.5em ;
|
||||
padding-right: 0.5em ;
|
||||
vertical-align: top }
|
||||
|
||||
table.docutils th.field-name, table.docinfo th.docinfo-name {
|
||||
font-weight: bold ;
|
||||
text-align: left ;
|
||||
white-space: nowrap ;
|
||||
padding-left: 0 }
|
||||
|
||||
/* "booktabs" style (no vertical lines) */
|
||||
table.docutils.booktabs {
|
||||
border: 0px;
|
||||
border-top: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
table.docutils.booktabs * {
|
||||
border: 0px;
|
||||
}
|
||||
table.docutils.booktabs th {
|
||||
border-bottom: thin solid;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
|
||||
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
|
||||
font-size: 100% }
|
||||
|
||||
ul.auto-toc {
|
||||
list-style-type: none }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="document" id="product-state">
|
||||
<h1 class="title">Product State</h1>
|
||||
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/product-attribute/tree/12.0/product_state"><img alt="OCA/product-attribute" src="https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/product-attribute-12-0/product-attribute-12-0-product_state"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/135/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module introduces the state field on product template and allows simple product life cycle:</p>
|
||||
<ul class="simple">
|
||||
<li>draft: In Development</li>
|
||||
<li>sellable: Normal</li>
|
||||
<li>end: End of Lifecycle</li>
|
||||
<li>obsolete: Obsolete</li>
|
||||
</ul>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
<ul class="simple">
|
||||
<li><a class="reference internal" href="#usage" id="id1">Usage</a></li>
|
||||
<li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li>
|
||||
<li><a class="reference internal" href="#credits" id="id3">Credits</a><ul>
|
||||
<li><a class="reference internal" href="#authors" id="id4">Authors</a></li>
|
||||
<li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li>
|
||||
<li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="usage">
|
||||
<h1><a class="toc-backref" href="#id1">Usage</a></h1>
|
||||
<p>To create a new state:</p>
|
||||
<ol class="arabic simple">
|
||||
<li>Go to <em>Sales > Configuration > Products > Product States</em>.</li>
|
||||
<li>You can set its name and a description.</li>
|
||||
</ol>
|
||||
<p>To add a product to a state:</p>
|
||||
<ol class="arabic simple">
|
||||
<li>Go to the product itself and edit.</li>
|
||||
<li>You can select the desired status in the list of buttons above the form.</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/product-attribute/issues">GitHub Issues</a>.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
<a class="reference external" href="https://github.com/OCA/product-attribute/issues/new?body=module:%20product_state%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
<h1><a class="toc-backref" href="#id3">Credits</a></h1>
|
||||
<div class="section" id="authors">
|
||||
<h2><a class="toc-backref" href="#id4">Authors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>ACSONE SA/NV</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="contributors">
|
||||
<h2><a class="toc-backref" href="#id5">Contributors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Cedric Pigeon <<a class="reference external" href="mailto:cedric.pigeon@acsone.eu">cedric.pigeon@acsone.eu</a>></li>
|
||||
<li>Alexandre Saunier <<a class="reference external" href="mailto:alexandre.saunier@camptocamp.com">alexandre.saunier@camptocamp.com</a>></li>
|
||||
<li>Nikul Chaudhary <<a class="reference external" href="mailto:nikulchaudhary2112@gmail.com">nikulchaudhary2112@gmail.com</a>></li>
|
||||
<li>Eduardo Magdalena <<a class="reference external" href="mailto:emagdalena@c2i.es">emagdalena@c2i.es</a>> (C2i Change 2 improve <a class="reference external" href="http://www.c2i.es">http://www.c2i.es</a>)</li>
|
||||
<li>Andrii Skrypka <<a class="reference external" href="mailto:andrijskrypa@ukr.net">andrijskrypa@ukr.net</a>></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
<h2><a class="toc-backref" href="#id6">Maintainers</a></h2>
|
||||
<p>This module is maintained by the OCA.</p>
|
||||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
|
||||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</p>
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
||||
<p><a class="reference external" href="https://github.com/emagdalenaC2i"><img alt="emagdalenaC2i" src="https://github.com/emagdalenaC2i.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/product-attribute/tree/12.0/product_state">OCA/product-attribute</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,140 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="product_state_search_form_view" model="ir.ui.view">
|
||||
<field name="name">product.state.search.form</field>
|
||||
<field name="model">product.state</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Product State">
|
||||
<field name="name"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
<act_window
|
||||
id="action_open_state_products"
|
||||
name="State Products"
|
||||
res_model="product.template"
|
||||
view_type="form"
|
||||
view_mode="kanban,form,tree"
|
||||
domain="[('product_state_id', '=', active_id)]"/>
|
||||
<act_window
|
||||
id="action_open_single_product_state"
|
||||
name="Product State"
|
||||
res_model="product.state"
|
||||
view_type="form"
|
||||
view_mode="kanban,form,tree"
|
||||
target="current"
|
||||
domain="[('product_ids', 'in', active_id)]"/>
|
||||
<record id="view_product_state_form" model="ir.ui.view">
|
||||
<field name="name">product.state.form</field>
|
||||
<field name="model">product.state</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
<button name="%(action_open_state_products)d"
|
||||
type="action"
|
||||
class="oe_stat_button"
|
||||
icon="fa-cubes">
|
||||
<field name="products_count" widget="statinfo" string="Products"/>
|
||||
</button>
|
||||
</div>
|
||||
<div class="oe_title">
|
||||
<label for="name" string="State Name" class="oe_edit_only"/>
|
||||
<h1>
|
||||
<field name="name"/>
|
||||
</h1>
|
||||
</div>
|
||||
<group string="Code">
|
||||
<field name="code" nolabel="1"/>
|
||||
</group>
|
||||
<group string="Description">
|
||||
<field name="description" nolabel="1"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_product_state_tree" model="ir.ui.view">
|
||||
<field name="name">product.state.tree</field>
|
||||
<field name="model">product.state</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="product.state">
|
||||
<field name="name"/>
|
||||
<field name="description"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_product_state_kanban" model="ir.ui.view">
|
||||
<field name="name">product.state.kanban</field>
|
||||
<field name="model">product.state</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban>
|
||||
<field name="id"/>
|
||||
<field name="products_count"/>
|
||||
<field name="description"/>
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div class="oe_kanban_global_click">
|
||||
<div class="oe_kanban_details">
|
||||
<h4>
|
||||
<field name="name"/>
|
||||
</h4>
|
||||
<div>
|
||||
<a name="%(product_state.action_open_state_products)d" type="action">
|
||||
<t t-esc="record.products_count.value"/> Products
|
||||
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_product_template_search_state" model="ir.ui.view">
|
||||
<field name="name">product.template.search.state</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_search_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="after">
|
||||
<field name="product_state_id"/>
|
||||
<filter string="State" name="groupby_state" domain="[]"
|
||||
context="{'group_by' : 'product_state_id'}"/>
|
||||
<separator/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
<record id="product_template_form_view" model="ir.ui.view">
|
||||
<field name="name">product.template.common.form</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<header position="inside">
|
||||
<field name="product_state_id" widget="statusbar" clickable="True"/>
|
||||
<field name="state" invisible="1"/>
|
||||
</header>
|
||||
</field>
|
||||
</record>
|
||||
<record id="product_template_view_tree_inherit_product_state_id" model="ir.ui.view">
|
||||
<field name="name">product.template.tree (product_state_id)</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_tree_view"/>
|
||||
<field name="priority">50</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="type" position="after">
|
||||
<field name="state"/></field>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="action_product_state">
|
||||
<field name="name">State</field>
|
||||
<field name="res_model">product.state</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">kanban,form,tree</field>
|
||||
</record>
|
||||
<menuitem
|
||||
name="Product States"
|
||||
id="menu_product_state"
|
||||
action="action_product_state"
|
||||
parent="sale.prod_config_main"/>
|
||||
</odoo>
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
"name": "Stock Picking Depósito",
|
||||
"summary": "Permite la gestión de depósitos en el almacén y su facturación.",
|
||||
"version": "12.0.1.0.1",
|
||||
"version": "16.0.1.0.0",
|
||||
"development_status": "Alpha",
|
||||
"category": "Warehouse Management",
|
||||
"website": "https://criptomart.net",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<odoo>
|
||||
<data noupdate="0">
|
||||
<data>
|
||||
|
||||
<record id="wh_deposits" model="stock.warehouse">
|
||||
<field name="name">Depósito Salidas</field>
|
||||
|
@ -21,7 +21,7 @@
|
|||
</function>
|
||||
|
||||
</data>
|
||||
<data noupdate="0">
|
||||
<data>
|
||||
|
||||
<record id="location_deposit_buy" model="stock.location">
|
||||
<field name="name">Depósitos Entradas</field>
|
||||
|
|
|
@ -2,4 +2,3 @@ from . import stock_picking
|
|||
from . import res_partner
|
||||
from . import res_config_settings
|
||||
from . import res_company
|
||||
from . import account_invoice
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
# Copyright (C) 2021: Criptomart (<https://criptomart.net/>)
|
||||
# @author: Criptomart (<tech@criptomart.net>)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import logging
|
||||
|
||||
from odoo import models, fields, api, _
|
||||
from odoo.exceptions import ValidationError, Warning
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
class AccountInvoice(models.Model):
|
||||
_inherit = 'account.invoice'
|
||||
|
||||
@api.constrains('partner_id', 'partner_bank_id')
|
||||
def validate_partner_bank_id(self):
|
||||
for record in self:
|
||||
if record.partner_bank_id:
|
||||
if record.type in ('in_invoice', 'out_refund') and record.partner_bank_id.partner_id != record.partner_id.commercial_partner_id:
|
||||
_logger.warning(_("Commercial partner and vendor account owners must be identical."))
|
||||
record.partner_bank_id = False
|
||||
elif record.type in ('out_invoice', 'in_refund') and not record.company_id in record.partner_bank_id.partner_id.ref_company_ids:
|
||||
raise ValidationError(_("The account selected for payment does not belong to the same company as this invoice."))
|
||||
|
|
@ -55,7 +55,6 @@ class ResPartner(models.Model):
|
|||
}).id
|
||||
return super().create(vals)
|
||||
|
||||
@api.multi
|
||||
def write(self, vals):
|
||||
if ( vals.get('deposit_sale_accept', False) == True ) and not self.deposit_sale_location_id:
|
||||
vals['deposit_sale_location_id'] = self.env['stock.location'].create({
|
||||
|
@ -72,7 +71,7 @@ class ResPartner(models.Model):
|
|||
return super().write(vals)
|
||||
|
||||
def make_liquidation_buy(self, context = None):
|
||||
invoice_obj = self.env['account.invoice']
|
||||
invoice_obj = self.env['account.move']
|
||||
search_vals = [
|
||||
('location_id', '=', self.deposit_buy_location_id.id),'|',
|
||||
('location_dest_id', '=', self.env.ref('stock.stock_location_customers').id),
|
||||
|
@ -111,11 +110,11 @@ class ResPartner(models.Model):
|
|||
'invoice_line_ids': product_list,
|
||||
'company_id': self.company_id.id,
|
||||
})
|
||||
invoice = self.env['account.invoice'].create(invoice_vals)
|
||||
invoice = invoice_obj.create(invoice_vals)
|
||||
views = [(self.env.ref('account.invoice_form').id, 'form')]
|
||||
return {
|
||||
'type': 'ir.actions.act_window',
|
||||
'res_model': 'account.invoice',
|
||||
'res_model': 'account.move',
|
||||
'res_id': invoice.id,
|
||||
'target': 'current',
|
||||
'views': views,
|
||||
|
@ -135,7 +134,7 @@ class ResPartner(models.Model):
|
|||
stock_lines = self.env['stock.quant'].search(search_vals)
|
||||
product_list = []
|
||||
for mv in stock_lines:
|
||||
if mv.quantity > 0:
|
||||
if mv.quantity > 0:
|
||||
product_list.append([0, False, {
|
||||
'product_id': mv.product_id.id,
|
||||
'product_uom_qty': mv.quantity,
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
<record id="res_config_settings_view_form" model="ir.ui.view">
|
||||
<field name="name">res.config.settings.view.form.inherit.product.deposit</field>
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="product.res_config_settings_view_form" />
|
||||
<field name="inherit_id" ref="stock.res_config_settings_view_form" />
|
||||
<field name="arch" type="xml">
|
||||
<div id="invoicing_settings" position="after">
|
||||
<xpath expr="//div[@id='production_lot_info']" position='after'>
|
||||
<h2>Deposit Settings</h2>
|
||||
<div id="deposit_settings" class="row mt16 o_settings_container">
|
||||
<div class="col-12 col-lg-6 o_setting_box">
|
||||
|
@ -19,7 +19,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue