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
9 years ago
8 changed files with 118 additions and 20 deletions
-
4pos_remove_pos_category/README.rst
-
3pos_remove_pos_category/__openerp__.py
-
45pos_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
@ -1,22 +1,55 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * pos_remove_pos_category |
|||
# * pos_remove_pos_category |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2015-03-31 09:05+0000\n" |
|||
"PO-Revision-Date: 2015-03-31 09:05+0000\n" |
|||
"Last-Translator: <>\n" |
|||
"POT-Creation-Date: 2015-07-24 07:13+0000\n" |
|||
"PO-Revision-Date: 2015-07-24 09:20+0100\n" |
|||
"Last-Translator: David BEAL <david.beal@akretion.com>\n" |
|||
"Language-Team: \n" |
|||
"Language: fr\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Content-Transfer-Encoding: 8bit\n" |
|||
"Plural-Forms: \n" |
|||
"X-Generator: Poedit 1.7.5\n" |
|||
|
|||
#. module: pos_remove_pos_category |
|||
#: view:product.category:pos_remove_pos_category.product_category_list_view |
|||
msgid "Available in POS" |
|||
msgstr "Disponible dans le PDV" |
|||
|
|||
#. module: pos_remove_pos_category |
|||
#: field:product.category,available_in_pos:0 |
|||
msgid "Available in the Point of Sale" |
|||
msgstr "Disponible dans le Point de Vente" |
|||
|
|||
#. module: pos_remove_pos_category |
|||
#: help:product.category,available_in_pos:0 |
|||
msgid "" |
|||
"Check if you want this category to appear in Point Of Sale.\n" |
|||
"If you uncheck, children categories will becomes invisible too, whatever " |
|||
"their checkbox state." |
|||
msgstr "" |
|||
"Cochez si vous voulez que cette catégorie apparaisse dans le Point de " |
|||
"Vente.\n" |
|||
"Si vous décochez, les catégories enfants deviendront invisible " |
|||
"également, quel que soit l'état de leur case à cocher." |
|||
|
|||
#. module: pos_remove_pos_category |
|||
#: model:ir.model,name:pos_remove_pos_category.model_ir_module_module |
|||
msgid "Module" |
|||
msgstr "Module" |
|||
|
|||
#. module: pos_remove_pos_category |
|||
#: model:ir.model,name:pos_remove_pos_category.model_product_category |
|||
msgid "Product Category" |
|||
msgstr "Catégorie de Produit" |
|||
|
|||
#. module: pos_remove_pos_category |
|||
#: model:ir.model,name:pos_remove_pos_category.model_product_template |
|||
msgid "Product Template" |
|||
msgstr "Modèle d'article" |
|||
|
@ -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