Browse Source

[FIX] beesdoo_custom: add default code to tree view

pull/57/head
robin.keunen 6 years ago
parent
commit
2ffd9b03ce
  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