Browse Source

[MIG] compute_purchase_order: migration to 10.0

- followed oca guidelines
- not tested on odoo 10.0
pull/145/head
Vincent Van Rossem 5 years ago
committed by robin.keunen
parent
commit
af1ffcb465
  1. 2
      compute_purchase_order/__manifest__.py
  2. 4
      compute_purchase_order/models/computed_purchase_order.py
  3. 4
      compute_purchase_order/models/computed_purchase_order_line.py
  4. 2
      compute_purchase_order/models/product_template.py
  5. 2
      compute_purchase_order/models/purchase_order.py
  6. 2
      compute_purchase_order/views/computed_purchase_order.xml

2
compute_purchase_order/__openerp__.py → compute_purchase_order/__manifest__.py

@ -1,7 +1,7 @@
# -*- encoding: utf-8 -*-
{
'name': 'Computed Purchase Order',
'version': '9.0.1',
'version': '10.0.1.0.0',
'category': 'Purchase Order',
'description': """ todo """,
'author': 'Coop IT Easy',

4
compute_purchase_order/models/computed_purchase_order.py

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from openerp import models, fields, api, SUPERUSER_ID
from openerp.exceptions import ValidationError
from odoo import models, fields, api, SUPERUSER_ID
from odoo.exceptions import ValidationError
class ComputedPurchaseOrder(models.Model):

4
compute_purchase_order/models/computed_purchase_order_line.py

@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
import logging
from openerp import models, fields, api
from openerp.exceptions import ValidationError
from odoo import models, fields, api
from odoo.exceptions import ValidationError
_logger = logging.getLogger(__name__)

2
compute_purchase_order/models/product_template.py

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

2
compute_purchase_order/models/purchase_order.py

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

2
compute_purchase_order/views/computed_purchase_order.xml

@ -55,7 +55,7 @@
</group>
<field name="order_line_ids" context="{'cpo_seller_id': supplier_id}">
<tree string="Order Lines" editable='bottom'>
<tree name="order_lines" string="Order Lines" editable='bottom'>
<field name="product_template_id" domain="[('main_seller_id', '=', cpo_seller_id)]"/>
<field name="qty_available" readonly='1'/>
<field name="virtual_available" readonly='1'/>

Loading…
Cancel
Save