Merge branch '10.0' of github.com:akretion/odoo-usability into 10.0
This commit is contained in:
@@ -105,6 +105,12 @@ class AccountAnalyticAccount(models.Model):
|
||||
else:
|
||||
return super(AccountAnalyticAccount, self).name_get()
|
||||
|
||||
_sql_constraints = [(
|
||||
'code_company_unique',
|
||||
'unique(code, company_id)',
|
||||
'An analytic account with the same code already '
|
||||
'exists in the same company!')]
|
||||
|
||||
|
||||
class AccountMoveLine(models.Model):
|
||||
_inherit = 'account.move.line'
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
</record>
|
||||
|
||||
<menuitem id="res_partner_phone_menu" action="res_partner_phone_action"
|
||||
parent="sales_team.menu_sales" sequence="2"/>
|
||||
parent="sales_team.menu_sales" sequence="10"/>
|
||||
|
||||
<record id="view_partner_form" model="ir.ui.view">
|
||||
<field name="name">add.phone_ids.on.partner.form</field>
|
||||
|
||||
1
mrp_no_product_template_menu/__init__.py
Normal file
1
mrp_no_product_template_menu/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
26
mrp_no_product_template_menu/__manifest__.py
Normal file
26
mrp_no_product_template_menu/__manifest__.py
Normal file
@@ -0,0 +1,26 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
{
|
||||
'name': 'MRP No Product Template Menu',
|
||||
'version': '10.0.1.0.0',
|
||||
'category': 'Manufacturing',
|
||||
'license': 'AGPL-3',
|
||||
'summary': "Remplace product.template menu entries by product.product menu entries",
|
||||
'description': """
|
||||
MRP No Product Template
|
||||
=======================
|
||||
|
||||
This module replaces the menu entry for product.template by menu entries for product.product in the *Manufacturing > Master Data* menu.
|
||||
|
||||
This module also switches to the tree view by default for Product menu entries, instead of the kanban view.
|
||||
|
||||
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
|
||||
""",
|
||||
'author': 'Akretion',
|
||||
'website': 'http://www.akretion.com',
|
||||
'depends': ['mrp'],
|
||||
'data': ['mrp_view.xml'],
|
||||
'installable': True,
|
||||
}
|
||||
20
mrp_no_product_template_menu/mrp_view.xml
Normal file
20
mrp_no_product_template_menu/mrp_view.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
© 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
|
||||
<odoo>
|
||||
|
||||
<record id="product_product_action_mrp" model="ir.actions.act_window">
|
||||
<field name="name">Products</field>
|
||||
<field name="res_model">product.product</field>
|
||||
<field name="view_mode">tree,form,kanban</field>
|
||||
<field name="context">{'search_default_consumable': 1, 'default_type': 'product'}</field>
|
||||
</record>
|
||||
|
||||
<record id="mrp.menu_mrp_product_form" model="ir.ui.menu">
|
||||
<field name="action" ref="product_product_action_mrp"/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user