Browse Source

[12.0][MIG] easy_my_coop_eater: adaptation to 12.0

- followed oca guidelines
- tested on odoo 12.0
pull/84/head
Vincent Van Rossem 5 years ago
committed by robin.keunen
parent
commit
b2d3b80ca6
  1. 5
      easy_my_coop_eater/__manifest__.py
  2. 3
      easy_my_coop_eater/models/coop.py
  3. 3
      easy_my_coop_eater/models/product.py
  4. 2
      easy_my_coop_eater/view/product_view.xml

5
easy_my_coop_eater/__openerp__.py → easy_my_coop_eater/__manifest__.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2013-2017 Open Architects Consulting SPRL.
@ -20,9 +19,9 @@
##############################################################################
{
"name": "Easy My Coop Eater/worker",
"version": "1.0",
"version": "12.0.1.0.0",
"depends": ["easy_my_coop", "partner_age"],
"author": "Houssine BAKKALI <houssine@coopiteasy.be>",
"author": "Coop IT Easy SCRLfs",
"category": "Cooperative management",
'website': "www.coopiteasy.be",
"description": """

3
easy_my_coop_eater/models/coop.py

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
from openerp import api, models
from odoo import api, models
class SubscriptionRequest(models.Model):

3
easy_my_coop_eater/models/product.py

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
from openerp import fields, models
from odoo import fields, models
class ProductTemplate(models.Model):

2
easy_my_coop_eater/view/product_view.xml

@ -3,7 +3,7 @@
<record id="product_template_form_view_eater" model="ir.ui.view">
<field name="name">product.template.share.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="easy_my_coop.product_template_form_view"/>
<field name="inherit_id" ref="easy_my_coop.product_template_share_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='minimum_quantity']" position="after">
<field name="eater" attrs="{'invisible':[('is_share','=',False)]}"/>

Loading…
Cancel
Save