mirror of
https://gitlab.com/datalifeit/trytond-stock_product_category_location
synced 2023-12-14 04:33:11 +01:00
parent
43ca0ab602
commit
163e43fe05
4 changed files with 17 additions and 5 deletions
|
@ -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"
|
|
@ -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'})]
|
||||
|
|
|
@ -2,8 +2,9 @@
|
|||
version=3.6.1
|
||||
depends:
|
||||
ir
|
||||
product
|
||||
stock
|
||||
res
|
||||
stock_location_notebook
|
||||
|
||||
xml:
|
||||
location.xml
|
||||
product.xml
|
||||
|
|
|
@ -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>
|
Loading…
Reference in a new issue