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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
2 deletions
-
beesdoo_custom/__openerp__.py
-
beesdoo_custom/views/beesdoo_product.xml
-
beesdoo_product/models/beesdoo_product.py
|
|
@ -2,7 +2,7 @@ |
|
|
|
{ |
|
|
|
'name': "beesdoo_custom", |
|
|
|
|
|
|
|
'summary': """ |
|
|
|
'description': """ |
|
|
|
View and field definition specific to BEES' needs. |
|
|
|
""", |
|
|
|
|
|
|
|
|
|
@ -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"/> |
|
|
|
|
|
@ -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') |
|
|
|