Browse Source

[MIG] pos_loyalty to 12.0

pull/414/head
Pierrick Brun 6 years ago
committed by Wolfgang Pichler
parent
commit
8f7155cfad
  1. 2
      pos_loyalty/__manifest__.py
  2. 2
      pos_loyalty/readme/DESCRIPTION.rst
  3. 13
      pos_loyalty/views/res_partner_view.xml

2
pos_loyalty/__manifest__.py

@ -5,7 +5,7 @@
{ {
'name': 'Loyalty Program', 'name': 'Loyalty Program',
'version': '11.0.1.0.0',
'version': '12.0.1.0.0',
'category': 'Point of Sale', 'category': 'Point of Sale',
'license': 'AGPL-3', 'license': 'AGPL-3',
'author': "OpenERP SA, " 'author': "OpenERP SA, "

2
pos_loyalty/readme/DESCRIPTION.rst

@ -1,6 +1,6 @@
This module allows you to define a loyalty program in the point of sale, This module allows you to define a loyalty program in the point of sale,
where the customers earn loyalty points and get rewards. where the customers earn loyalty points and get rewards.
This module is a forward-port to v10 of the pos_loyalty module from Odoo's
This module is a forward-port to v12 of the pos_loyalty module from Odoo's
saas-6 branch. saas-6 branch.
The functionality was moved to the Enterprise edition in later versions. The functionality was moved to the Enterprise edition in later versions.

13
pos_loyalty/views/res_partner_view.xml

@ -5,11 +5,14 @@
<field name="model">res.partner</field> <field name="model">res.partner</field>
<field name="inherit_id" ref="point_of_sale.view_partner_property_form"/> <field name="inherit_id" ref="point_of_sale.view_partner_property_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//group[@name='point_of_sale']" position="after">
<group name="loyalty" string="Loyalty Programs">
<field name="loyalty_points"/>
</group>
</xpath>
<button name="%(point_of_sale.action_pos_pos_form)d" position="before">
<button class="oe_stat_button" type="action" name="%(point_of_sale.action_pos_pos_form)d"
context="{'search_default_partner_id': active_id,'default_partner_id': active_id}"
attrs="{'invisible': ['|', ('customer', '=', False), ('pos_order_count', '=', 0)]}"
icon="fa-star">
<field name="loyalty_points" widget="statinfo"/>
</button>
</button>
</field> </field>
</record> </record>
</odoo> </odoo>
Loading…
Cancel
Save