I would like to suppress the display of the stock price change chart in the default view on the Production page. I use inheritance to change form. Now I can inherit the form and get additional actions. However, I cannot use position = "replace" for the action, form or field "arch". So, how do I stop displaying stock price variations or other charts?
Background: I'm new to OpenERP, and I'm trying to use the Manufacturing module to create a custom application to track the development of hardware prototypes. Most of the functionality I want already exists, so OpenERP is natural. However, the first step is to disable all unnecessary. Inheriting and replacing fields to stop their appearance was not a problem, but I can’t get rid of the actions that create reports and graphs.
Related questions:
Would it be better to leave the Manufacturing pages and create a new Prototypes module? In other words, right now I'm trying to change the behavior of the "Production" pages - would it be better to create a new module and add the "Prototypes" button with Sales / Purchases / Warehouse / Production / Accounting / Settings at the top of the page by default?
I’m not sure where the additional “Change Layout” button is added at the top of the window, the page is processed by default, or how to get rid of that. Any ideas?
Is the problem that I get from dynamic names and referring to them in another module? (For example, name = "% (purchase.procurement_exceptions) d" in the mrp_boot_view.xml file).
OpenERP 6.1 on Windows, install everything locally.
Here is the code:
__openerp__.py: { "name" : "prototyping tool", "version" : "0.1", "author" : "", "website" : "", "category" : "Manufacturing", "sequence": 19, "images" : [], "depends" : ["mrp", "base"], "description": """initial version doesn't do much, simplifies MRP views.""", 'init_xml': [], 'update_xml': ["mrp_boot_view.xml"], 'demo_xml': [], 'test': [], 'installable': True, 'application': True, 'auto_install': False, 'certificate': '', }
__init__.py: import mrp_boot import mrp
mrp_boot.py:
mrp_boot_view.xml: # I'd like to supress the display of the charts generated by the actions <?xml version="1.0" ?> <openerp> <data> <record id="board_mrp_manager_form" model="ir.ui.view"> <field name="name">board.mrp.manager.form</field> <field name="model">board.board</field> <field name="inherit_id" ref="mrp.board_mrp_manager_form" /> <field name="type">form</field> <field name="priority" eval="15"/> <field name="arch" type="xml"> <form string="Manufacturing board"> <board style="2-1"> <column> <action name="%(procurement.procurement_exceptions)d" string="New Prototype Outlook" domain="[('state','=','exception')]"/> </column> <column> </column> </board> </form> </field> </record> </data> </openerp>
Jeff P.
source share