New dependency with stock_location_notebook

This commit refs #795
This commit is contained in:
Sergio Morillo 2015-09-01 18:59:44 +02:00
parent 43ca0ab602
commit 163e43fe05
4 changed files with 17 additions and 5 deletions

View file

@ -69,3 +69,7 @@ msgstr "Todos"
msgctxt "view:product.category:"
msgid "Locations"
msgstr "Ubicaciones"
msgctxt "view:stock.location:"
msgid "Product categories"
msgstr "Categorías de producto"

View file

@ -88,3 +88,9 @@ class Location:
states={
'invisible': Not(Equal(Eval('type'), 'storage'))},
context={'current_location': Eval('id')})
@classmethod
def view_attributes(cls):
return super(Location, cls).view_attributes() + [
('//page[@id="categories"]', 'states', {
'invisible': Eval('type') != 'storage'})]

View file

@ -2,8 +2,9 @@
version=3.6.1
depends:
ir
product
stock
res
stock_location_notebook
xml:
location.xml
product.xml

View file

@ -3,9 +3,10 @@
copyright notices and license terms. -->
<data>
<xpath
expr="/form" position="inside">
<field name="categories" colspan="4"
<xpath expr="/form/notebook" position="inside">
<page id="categories" string="Product categories">
<field name="categories" colspan="4"
view_ids="stock_product_category_location.product_category_location_location_detail_view_tree"/>
</page>
</xpath>
</data>