Minor changes
This commit is contained in:
@@ -14,6 +14,7 @@ class ProductTemplate(models.Model):
|
|||||||
list_price = fields.Float(track_visibility='onchange')
|
list_price = fields.Float(track_visibility='onchange')
|
||||||
sale_ok = fields.Boolean(track_visibility='onchange')
|
sale_ok = fields.Boolean(track_visibility='onchange')
|
||||||
purchase_ok = fields.Boolean(track_visibility='onchange')
|
purchase_ok = fields.Boolean(track_visibility='onchange')
|
||||||
|
active = fields.Boolean(track_visibility='onchange')
|
||||||
|
|
||||||
|
|
||||||
class ProductProduct(models.Model):
|
class ProductProduct(models.Model):
|
||||||
@@ -22,6 +23,7 @@ class ProductProduct(models.Model):
|
|||||||
default_code = fields.Char(track_visibility='onchange')
|
default_code = fields.Char(track_visibility='onchange')
|
||||||
barcode = fields.Char(track_visibility='onchange')
|
barcode = fields.Char(track_visibility='onchange')
|
||||||
weight = fields.Float(track_visibility='onchange')
|
weight = fields.Float(track_visibility='onchange')
|
||||||
|
active = fields.Boolean(track_visibility='onchange')
|
||||||
price_history_ids = fields.One2many(
|
price_history_ids = fields.One2many(
|
||||||
'product.price.history', 'product_id',
|
'product.price.history', 'product_id',
|
||||||
string='Product Price History')
|
string='Product Price History')
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<!-- PURCHASE -->
|
<!-- PURCHASE -->
|
||||||
<record id="product_product_action_puchased" model="ir.actions.act_window">
|
<record id="product_product_action_purchased" model="ir.actions.act_window">
|
||||||
<field name="name">Products</field>
|
<field name="name">Products</field>
|
||||||
<field name="res_model">product.product</field>
|
<field name="res_model">product.product</field>
|
||||||
<field name="view_mode">tree,form,kanban</field>
|
<field name="view_mode">tree,form,kanban</field>
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="purchase.menu_procurement_partner_contact_form" model="ir.ui.menu">
|
<record id="purchase.menu_procurement_partner_contact_form" model="ir.ui.menu">
|
||||||
<field name="action" ref="product_product_action_puchased"/>
|
<field name="action" ref="product_product_action_purchased"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<!-- STOCK -->
|
<!-- STOCK -->
|
||||||
|
|||||||
Reference in New Issue
Block a user