Browse Source
Merge pull request #41 from akretion/8-categ-visible-in-pos
Merge pull request #41 from akretion/8-categ-visible-in-pos
[IMP] make category visible or not in pospull/9/merge
Sylvain LE GAL
10 years ago
8 changed files with 118 additions and 20 deletions
-
4pos_remove_pos_category/README.rst
-
3pos_remove_pos_category/__openerp__.py
-
43pos_remove_pos_category/i18n/fr.po
-
30pos_remove_pos_category/i18n/pos_remove_pos_category.pot
-
11pos_remove_pos_category/product.py
-
1pos_remove_pos_category/static/src/js/pos_remove_pos_category.js
-
34pos_remove_pos_category/views/pos_category.xml
-
10pos_remove_pos_category/views/pos_remove_pos_category.xml
@ -0,0 +1,34 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<openerp> |
||||
|
<data> |
||||
|
|
||||
|
<template id="assets_backend" name="pos_remove_pos_category assets" inherit_id="web.assets_backend"> |
||||
|
<xpath expr="." position="inside"> |
||||
|
<script type="text/javascript" src="/pos_remove_pos_category/static/src/js/pos_remove_pos_category.js"></script> |
||||
|
</xpath> |
||||
|
</template> |
||||
|
|
||||
|
<record id="product_category_form_view" model="ir.ui.view"> |
||||
|
<field name="model">product.category</field> |
||||
|
<field name="inherit_id" ref="product.product_category_form_view"/> |
||||
|
<!-- Priority to avoid to break account and logistics fields--> |
||||
|
<field name="priority">20</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//group[@name='parent']" position="inside"> |
||||
|
<field name="available_in_pos"/> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="product_category_list_view" model="ir.ui.view"> |
||||
|
<field name="model">product.category</field> |
||||
|
<field name="inherit_id" ref="product.product_category_list_view"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//field[@name='complete_name']" position="after"> |
||||
|
<field name="available_in_pos" string="Available in POS"/> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
</data> |
||||
|
</openerp> |
@ -1,10 +0,0 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
<openerp> |
|
||||
<data> |
|
||||
<template id="assets_backend" name="pos_remove_pos_category assets" inherit_id="web.assets_backend"> |
|
||||
<xpath expr="." position="inside"> |
|
||||
<script type="text/javascript" src="/pos_remove_pos_category/static/src/js/pos_remove_pos_category.js"></script> |
|
||||
</xpath> |
|
||||
</template> |
|
||||
</data> |
|
||||
</openerp> |
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue