Browse Source

[FIX] Use xml demo fiels instead of yml files. Removed yml file which did some changes for the root user - i don't think this is necessary here

pull/411/head
Wolfgang Pichler 5 years ago
parent
commit
d74d98c681
  1. 5
      pos_product_template/__manifest__.py
  2. 14
      pos_product_template/demo/product_attribute_value.xml
  3. 33
      pos_product_template/demo/product_product.xml
  4. 25
      pos_product_template/demo/res_groups.yml

5
pos_product_template/__manifest__.py

@ -16,9 +16,8 @@
'static/src/xml/ppt.xml',
],
'demo': [
'demo/product_attribute_value.yml',
'demo/product_product.yml',
'demo/res_groups.yml',
'demo/product_attribute_value.xml',
'demo/product_product.xml',
],
'images': [
'static/src/img/screenshots/pos_product_template.png',

14
pos_product_template/demo/product_attribute_value.yml → pos_product_template/demo/product_attribute_value.xml

@ -1,4 +1,5 @@
# -*- encoding: utf-8 -*-
<?xml version="1.0" encoding="utf-8"?>
<!--
##############################################################################
#
# Point Of Sale - Product Template module for Odoo
@ -19,7 +20,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
-->
<odoo>
- !record {model: product.attribute.value, id: attribute_wifi_extra}:
attribute_id: product.product_attribute_3
name: 2.399GHz
<record id="attribute_wifi_extra" model="product.attribute.value">
<field name="attribute_id" eval="ref('product.product_attribute_3')"/>
<field name="name">2.399GHz</field>
</record>
</odoo>

33
pos_product_template/demo/product_product.yml → pos_product_template/demo/product_product.xml

@ -1,4 +1,5 @@
# -*- encoding: utf-8 -*-
<?xml version="1.0" encoding="utf-8"?>
<!--
##############################################################################
#
# Point Of Sale - Product Template module for Odoo
@ -19,18 +20,26 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
-->
<odoo>
- !record {model: product.product, id: product.product_product_4}:
available_in_pos: True
<record id="product.product_product_4" model="product.product">
<field name="available_in_pos" eval="True"/>
</record>
- !record {model: product.product, id: product.product_product_4b}:
available_in_pos: True
<record id="product.product_product_4b" model="product.product">
<field name="available_in_pos" eval="True"/>
</record>
- !record {model: product.product, id: product.product_product_4c}:
available_in_pos: True
- !record {model: product.product, id: product.product_product_11}:
available_in_pos: True
<record id="product.product_product_4c" model="product.product">
<field name="available_in_pos" eval="True"/>
</record>
- !record {model: product.product, id: product.product_product_11b}:
available_in_pos: True
<record id="product.product_product_11" model="product.product">
<field name="available_in_pos" eval="True"/>
</record>
<record id="product.product_product_11b" model="product.product">
<field name="available_in_pos" eval="True"/>
</record>
</odoo>

25
pos_product_template/demo/res_groups.yml

@ -1,25 +0,0 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Point Of Sale - Product Template module for Odoo
# Copyright (C) 2014-Today Akretion (http://www.akretion.com)
# @author Sylvain LE GAL (https://twitter.com/legalsylvain)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
- !record {model: res.groups, id: base.group_no_one}:
users:
- base.user_root
Loading…
Cancel
Save