Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by pedrobaeza
- Loading branch information
Showing
11 changed files
with
98 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * product_dimension | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.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: product_dimension | ||
#: model:ir.model.fields,field_description:product_dimension.field_product_product_dimensional_uom_id | ||
#: model:ir.model.fields,field_description:product_dimension.field_product_template_dimensional_uom_id | ||
msgid "Dimensional UoM" | ||
msgstr "" | ||
|
||
#. module: product_dimension | ||
#: model:ir.ui.view,arch_db:product_dimension.product_template_form_view | ||
msgid "Dimensions" | ||
msgstr "" | ||
|
||
#. module: product_dimension | ||
#: model:ir.model.fields,field_description:product_dimension.field_product_product_height | ||
#: model:ir.model.fields,field_description:product_dimension.field_product_template_height | ||
msgid "Height" | ||
msgstr "" | ||
|
||
#. module: product_dimension | ||
#: model:ir.model.fields,field_description:product_dimension.field_product_product_length | ||
#: model:ir.model.fields,field_description:product_dimension.field_product_template_length | ||
msgid "Length" | ||
msgstr "" | ||
|
||
#. module: product_dimension | ||
#: model:ir.model,name:product_dimension.model_product_product | ||
msgid "Product" | ||
msgstr "" | ||
|
||
#. module: product_dimension | ||
#: model:ir.model,name:product_dimension.model_product_template | ||
msgid "Product Template" | ||
msgstr "" | ||
|
||
#. module: product_dimension | ||
#: model:ir.model.fields,help:product_dimension.field_product_product_dimensional_uom_id | ||
#: model:ir.model.fields,help:product_dimension.field_product_template_dimensional_uom_id | ||
msgid "UoM for length, height, width" | ||
msgstr "" | ||
|
||
#. module: product_dimension | ||
#: model:ir.model.fields,field_description:product_dimension.field_product_product_width | ||
#: model:ir.model.fields,field_description:product_dimension.field_product_template_width | ||
msgid "Width" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,24 @@ | ||
<?xml version="1.0"?> | ||
<odoo> | ||
|
||
<record model="ir.ui.view" id="product_normal_form_view"> | ||
<field name="name">product_normal_form_view</field> | ||
<field name="model">product.product</field> | ||
<field name="inherit_id" ref="product.product_normal_form_view"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//page/group[@name='inventory']" position="inside"> | ||
<group name="dimensions"> | ||
<field name="dimensional_uom_id"/> | ||
<field name="length" attrs="{'readonly':[('type','=','service')]}"/> | ||
<field name="height" attrs="{'readonly':[('type','=','service')]}"/> | ||
<field name="width" attrs="{'readonly':[('type','=','service')]}"/> | ||
</group> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
<record model="ir.ui.view" id="product_template_only_form_view"> | ||
<field name="name">product_template_form_view</field> | ||
<field name="model">product.template</field> | ||
<field name="inherit_id" ref="product.product_template_only_form_view"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//page/group[@name='inventory']" position="inside"> | ||
<group name="dimensions" attrs="{'invisible': [('product_variant_count', '>', 1)]}"> | ||
<field name="dimensional_uom_id" attrs="{'invisible': [('product_variant_count', '>', 1)]}"/> | ||
<field name="length" attrs="{'readonly':[('type','=','service')],'invisible': [('product_variant_count', '>', 1)]}"/> | ||
<field name="height" attrs="{'readonly':[('type','=','service')],'invisible': [('product_variant_count', '>', 1)]}"/> | ||
<field name="width" attrs="{'readonly':[('type','=','service')],'invisible': [('product_variant_count', '>', 1)]}"/> | ||
</group> | ||
</xpath> | ||
</field> | ||
<record model="ir.ui.view" id="product_template_form_view"> | ||
<field name="name">product.template with properties and dimensions</field> | ||
<field name="model">product.template</field> | ||
<field name="inherit_id" ref="product.product_template_form_view"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//notebook" position="inside"> | ||
<page string="Dimensions" name="dimensions"> | ||
<group> | ||
<group> | ||
<field name="length" attrs="{'readonly':[('type','=','service')],'invisible': [('product_variant_count', '>', 1)]}"/> | ||
<field name="width" attrs="{'readonly':[('type','=','service')],'invisible': [('product_variant_count', '>', 1)]}"/> | ||
<field name="height" attrs="{'readonly':[('type','=','service')],'invisible': [('product_variant_count', '>', 1)]}"/> | ||
<field name="dimensional_uom_id" attrs="{'invisible': [('product_variant_count', '>', 1)]}"/> | ||
</group> | ||
</group> | ||
</page> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
10.0.20190710.1 | ||
10.0.20190715.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../product_dimension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |