mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] description
This commit is contained in:
17
mrp_workcenter_group/README.rst
Normal file
17
mrp_workcenter_group/README.rst
Normal file
@@ -0,0 +1,17 @@
|
||||
Description
|
||||
===========
|
||||
|
||||
See __openerp__.py
|
||||
|
||||
Define your workcenter groups
|
||||
-----------------------------
|
||||
|
||||
.. image:: static/description/group.png
|
||||
:alt: Define your workcenter groups on Odoo ERP
|
||||
|
||||
|
||||
Attach a group to your workcenter
|
||||
---------------------------------
|
||||
|
||||
.. image:: static/description/workc.png
|
||||
:alt: Attach a group to your workcenter with Odoo ERP
|
||||
@@ -23,26 +23,68 @@
|
||||
{
|
||||
'name': 'MRP Workcenter Group',
|
||||
'version': '0.5',
|
||||
'author': 'Akretion',
|
||||
'author': 'Akretion,Odoo Community Association (OCA)',
|
||||
'summary': "Organise Workcenters by section",
|
||||
'maintener': 'Akretion',
|
||||
'category': 'Manufacturing',
|
||||
'depends': [
|
||||
'mrp_operations',
|
||||
],
|
||||
'description': """
|
||||
Features
|
||||
--------
|
||||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
|
||||
:alt: License
|
||||
|
||||
MRP Workcenter Group
|
||||
====================
|
||||
|
||||
* Add a new model: Workcenter Groups
|
||||
* Add a many2one field 'Group' in workcenter view form based on this model
|
||||
* Define a new 'Group by' entry named 'Group' in search view
|
||||
|
||||
Configuration
|
||||
=============
|
||||
|
||||
To visualize features offered by this module, you need to:
|
||||
|
||||
* go to Settings > Configuration > Manufacturing
|
||||
* in the section Manufacturing Order / Planning,
|
||||
check "Manage routings and work orders" and Validate
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
To use this module, you need to go to:
|
||||
|
||||
* Manufacturing > Configuration > Workcenter Groups
|
||||
|
||||
For further information, please visit:
|
||||
|
||||
* https://www.odoo.com/forum/help-1
|
||||
|
||||
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Contributors
|
||||
------------
|
||||
|
||||
* David BEAL <david.beal@akretion.com>
|
||||
* Sébastien BEAU <sebastien.beau@akretion.com>
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
.. image:: http://odoo-community.org/logo.png
|
||||
:alt: Odoo Community Association
|
||||
:target: http://odoo-community.org
|
||||
|
||||
This module is maintained by the OCA.
|
||||
|
||||
OCA, or the Odoo Community Association, is a nonprofit organization
|
||||
whose mission is to support the collaborative development of Odoo features
|
||||
and promote its widespread use.
|
||||
|
||||
To contribute to this module, please visit http://odoo-community.org.
|
||||
|
||||
""",
|
||||
'website': 'http://www.akretion.com/',
|
||||
|
||||
62
mrp_workcenter_group/i18n/mrp_workcenter_group.pot
Normal file
62
mrp_workcenter_group/i18n/mrp_workcenter_group.pot
Normal file
@@ -0,0 +1,62 @@
|
||||
# Translation of OpenERP Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mrp_workcenter_group
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 7.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2015-03-19 10:15+0000\n"
|
||||
"PO-Revision-Date: 2015-03-19 10:15+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: mrp_workcenter_group
|
||||
#: field:workcenter.group,active:0
|
||||
msgid "Active"
|
||||
msgstr ""
|
||||
|
||||
#. module: mrp_workcenter_group
|
||||
#: view:mrp.workcenter:0
|
||||
#: field:mrp.workcenter,workcenter_group_id:0
|
||||
#: view:workcenter.group:0
|
||||
msgid "Group"
|
||||
msgstr ""
|
||||
|
||||
#. module: mrp_workcenter_group
|
||||
#: view:workcenter.group:0
|
||||
#: field:workcenter.group,workcenter_ids:0
|
||||
msgid "Linked Workcenters"
|
||||
msgstr ""
|
||||
|
||||
#. module: mrp_workcenter_group
|
||||
#: field:workcenter.group,name:0
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: mrp_workcenter_group
|
||||
#: field:workcenter.group,sequence:0
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: mrp_workcenter_group
|
||||
#: code:_description:0
|
||||
#: model:ir.model,name:mrp_workcenter_group.model_mrp_workcenter
|
||||
#, python-format
|
||||
msgid "Work Center"
|
||||
msgstr ""
|
||||
|
||||
#. module: mrp_workcenter_group
|
||||
#: code:_description:0
|
||||
#: model:ir.actions.act_window,name:mrp_workcenter_group.act_open_workcenter_group_view
|
||||
#: model:ir.model,name:mrp_workcenter_group.model_workcenter_group
|
||||
#: model:ir.ui.menu,name:mrp_workcenter_group.menu_mrp_workcenter_group
|
||||
#: view:workcenter.group:0
|
||||
#, python-format
|
||||
msgid "Workcenter Groups"
|
||||
msgstr ""
|
||||
|
||||
4
mrp_workcenter_group/security/ir.model.access.csv
Normal file
4
mrp_workcenter_group/security/ir.model.access.csv
Normal file
@@ -0,0 +1,4 @@
|
||||
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
|
||||
"access_workcenter_group_user","access_workcenter_group","model_workcenter_group","base.group_user",1,0,0,0
|
||||
"access_workcenter_group_mrp_user","access_workcenter_group_mrp_user","model_workcenter_group","stock.group_mrp_user",1,1,0,0
|
||||
"access_workcenter_group_mrp_user_mng","access_workcenter_group_mrp_user_mng","model_workcenter_group","stock.group_mrp_manager",1,1,1,1
|
||||
|
15
mrp_workcenter_group/security/model_security.xml
Normal file
15
mrp_workcenter_group/security/model_security.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<!-- Multi - Company Rules -->
|
||||
|
||||
<record model="ir.rule" id="workcenter_group_comp_rule">
|
||||
<field name="name">Workcenter multi-company</field>
|
||||
<field name="model_id" ref="model_workcenter_group"/>
|
||||
<field name="global" eval="True"/>
|
||||
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
BIN
mrp_workcenter_group/static/description/group.png
Normal file
BIN
mrp_workcenter_group/static/description/group.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
22
mrp_workcenter_group/static/description/index.html
Normal file
22
mrp_workcenter_group/static/description/index.html
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
<section class="oe_container oe_website_only">
|
||||
|
||||
<div class="oe_row oe_more_spaced">
|
||||
<h3 class="oe_slogan">Workcenter Groups</h3>
|
||||
<h3 class="oe_slogan"><a href="http://odoo-community.org/">An OCA module</a> : validated by Odoo community experts</h3>
|
||||
<h4 class="oe_slogan"><a href="http://www.akretion.com/fr">By Akretion</a></h4>
|
||||
<div class="oe_span6">
|
||||
|
||||
<h2>Workcenter Groups</h2>
|
||||
|
||||
<table>
|
||||
<tr><td><h3>Define your workcenter groups</h3><div class="oe_row_img oe_centered"><img class="oe_picture" width="80%" src="group.png"></div><br/><br/></td></tr>
|
||||
<tr><td><h3>Attach a group to your workcenter</h3><div class="oe_row_img oe_centered"><img class="oe_picture" src="workc.png"></div><br/><br/></td></tr>
|
||||
</table>
|
||||
|
||||
<div class="oe_row oe_centeralign oe_more_space">
|
||||
<a href="http://www.akretion.com/contact" class="oe_button oe_big">Contact us</a><br>
|
||||
<a href="https://github.com/OCA/manufacture/tree/7.0" class="oe_button oe_big">Access to the code</a>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
BIN
mrp_workcenter_group/static/description/workc.png
Normal file
BIN
mrp_workcenter_group/static/description/workc.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
BIN
mrp_workcenter_group/static/src/img/icon.png
Normal file
BIN
mrp_workcenter_group/static/src/img/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.6 KiB |
@@ -31,6 +31,16 @@ class WorkcenterGroup(orm.Model):
|
||||
'name': fields.char('Name'),
|
||||
'sequence': fields.integer('Sequence'),
|
||||
'active': fields.boolean('Active'),
|
||||
'workcenter_ids': fields.one2many(
|
||||
'mrp.workcenter',
|
||||
'workcenter_group_id',
|
||||
readonly=True,
|
||||
string="Linked Workcenters"
|
||||
),
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
'active': True,
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -25,6 +25,26 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_workcenter_group_form" model="ir.ui.view">
|
||||
<field name="model">workcenter.group</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Workcenter Groups" version="7.0">
|
||||
<group name="main" cols="4">
|
||||
<group name="group" string="Group" cols="4">
|
||||
<field name="name"/>
|
||||
<field name="active"/>
|
||||
<field name="sequence"/>
|
||||
</group>
|
||||
<group name="link" string="Linked Workcenters" cols="4">
|
||||
<!--<label for="workcenter_ids"/>-->
|
||||
<field name="workcenter_ids" nolabel="1"/>
|
||||
</group>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
id="menu_mrp_workcenter_group"
|
||||
action="act_open_workcenter_group_view"
|
||||
@@ -47,6 +67,15 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="mrp_workcenter_view" model="ir.ui.view">
|
||||
<field name="model">mrp.workcenter</field>
|
||||
<field name="inherit_id" ref="mrp.mrp_workcenter_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="active" position="after">
|
||||
<field name="workcenter_group_id"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
||||
Reference in New Issue
Block a user