Hi,

I would like propose adding the following to the Module section in
http://odoo-community.org/page/website.how-to

Each XML and python script should be separated and named by model.

example:

_name = 'sale.order'  # goes in a file named sale_order.py and the class
name should be SaleOrder

_inherit = 'sale.order.line'  # goes in a file named sale_order_line.py
and the class name should be SaleOrderLine

<!-- Goes in a file named res_partner_data.xml -->
<!-- Or goes in a file named res_partner_demo.xml -->
<record name="example_partner" model="res.partner">...</record>

<!-- Goes in a file named res_company_view.xml -->
<record id="res_company_form" model="ir.ui.view">
  <field name="model">res.company</field>
  ...
</record>

<!-- Goes in a file named purchase_order_workflow.xml -->
<record id="purchase_order_workflow" model="ir.ui.view">
  <field name="osv">purchase.order</field>
  ...
</record>

<!-- Goes in a file named payment_order_report.xml -->
<report id="payment_order_report"
        model="payment.order"
        ...
        />

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mailing list: https://launchpad.net/~openerp-community
Post to     : openerp-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp

Reply via email to