Browse Source

Merge pull request #57 from robinkeunen/9.0-custom-product-view

[FIX] beesdoo_custom: add default code to tree view
pull/58/head
Robin Keunen 6 years ago
committed by GitHub
parent
commit
f42953c939
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beesdoo_custom/__openerp__.py
  2. 1
      beesdoo_custom/views/beesdoo_product.xml
  3. 2
      beesdoo_product/models/beesdoo_product.py

2
beesdoo_custom/__openerp__.py

@ -2,7 +2,7 @@
{
'name': "beesdoo_custom",
'summary': """
'description': """
View and field definition specific to BEES' needs.
""",

1
beesdoo_custom/views/beesdoo_product.xml

@ -8,6 +8,7 @@
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="default_code"/>
<field name="categ_id"/>
<field name="main_seller_id" string="Main Seller"/>
<field name="weight"/>

2
beesdoo_product/models/beesdoo_product.py

@ -13,7 +13,7 @@ class BeesdooProduct(models.Model):
fair_label = fields.Many2one('beesdoo.product.label', domain=[('type', '=', 'fair')])
origin_label = fields.Many2one('beesdoo.product.label', domain=[('type', '=', 'delivery')])
main_seller_id = fields.Many2one('res.partner', compute='_compute_main_seller_id', store=True)
main_seller_id = fields.Many2one('res.partner', string='Main Seller', compute='_compute_main_seller_id', store=True)
display_unit = fields.Many2one('product.uom')
default_reference_unit = fields.Many2one('product.uom')

Loading…
Cancel
Save