Skip to content

Instantly share code, notes, and snippets.

@miltonlab
Last active September 27, 2015 10:50
Show Gist options
  • Save miltonlab/206387e9beb50ace41b3 to your computer and use it in GitHub Desktop.
Save miltonlab/206387e9beb50ace41b3 to your computer and use it in GitHub Desktop.
Notes about OpenERP (Odoo) development - implementation

Functional Notes

  • The admin user must have Technicals rights to update list modules al Configuration Menu
  • To work the fist login of admin, he have set the password. By default admin not have password
  • Import examples: http://openerp.zikzakmedia.com/Importaci%C3%B3nExportaci%C3%B3nOpenERP
  • CSV Products importation:
    • Basic columns: Name, Internal Reference (Code), Optionall but usefull Customer Taxes , Supplier Taxes
  • Update/Correct translations at GUI, also load custom module translations: Configuration > Load Translation > Language : Select the right and 'Load'
  • Custom reports in my module: "Sí, lo exportas a RML y en tu módulo creas un arhivo xml que contenga una entrada report que sobre escriba la que está en el archivo: addons/purchase/purchase_report.xml el que se refiere a order.rml O sea el id del report debe ser id="puchase.report_purchase_order" " Saludos.

Technical Notes

  • Import CSVs: openerp-8.0dev-20140314-000102 BUG Report: https://bugs.launchpad.net/openobject-addons/+bug/1302815. Need this PATCH https://bugs.launchpad.net/openobject-addons/+bug/1302815/+attachment/4072225/+files/controller.patch
  • Delete a notebook page
    <page string="Incoming Shipments & Invoices" position="attributes"> 
       <attribute name='invisible'>1</attribute> 
     </page> 
  • Delete a field that is used showed at a column of tree view:
    <xpath expr="//tree/field[@name = 'minimum_planned_date']"
    position="attributes">
    <attribute name='invisible'>1</attribute>
    </xpath>
    This is the right way in version 8.0, position=replace not works
  • QWebException: 'NoneType' object has no attribute '_all_columns' Solution: Some field(s) not present in the model object
  • Some last dependencies in odoo 8.0rc1 STATIC_DEPS=true pip install lxml (correct installation)
  • CSV Data Import: the csv file name have follow module name Ej. product.product.csv
  • When a user has not the Employee rol (group_user), he does'nt can access in Odoo, this is the error: AccessError: ('AccessError', u'Sorry, you are not allowed to access this document. Only users with the following access level are currently allowed to do that:\n- Human Resources/Employee\n\t- Administration/Settings\n\t- Portal\n\n(Document model: ir.ui.menu)')
  • Hide Menús: To get this is necesary 1) create a group 2) assign all unwanted menus to this group 3) assign nobody user in this group. Notes: When delete a parent menu your sons appear at top bar menu. The menu ids are allocated at module views (xmls)
  • Overrided and persistent Translations: When load a translation it save at Database although delete it from de module code. To find a word at database can use Ej.: select src, value from ir_translation where lang = 'es_EC' and src = 'Approved by';
  • Translate Inherited Qweb reports: All new words or custom words must be translate at derivate module in .pot and .po file, not at original module. But using the original resource reference. Ej.:
#. module: **comprasunl** (not purchase)
 #: view:website:purchase.report_purchaseorder
 msgid "Observations:"
 msgstr "Observaciones:"

Real Cases

  • Hola Milton, Llegué a DigitalOcean buscando donde instalar Openerp para accesarlo desde cualquier parte; principalmente yo y mi esposa ya que tenemos un negocio (una panaderia pasteleria pequeña) y la intencion es accesarlo desde la casa y la oficina; yo quede muy entusiasmado desde que vi openerp y me propuse customizarlo a mi realidad; estuve un mes en linode y no me gusto, de Digital Ocean quede impresionado por la rapidez y la comodidad para manejarlo, actualmente tengo el plan de US$10 al mes y lo configure con ubuntu 14.04 + LAMP y wordpress, me demore 10 minutos en instalar odoo v8; para mi esta super bien... un cliente con 2-3 usuarios a lo mas, yo desde mi notebook con linux y mi mujer con windows; lo bueno es que uno puede escalar si necesito mas recursos, tambien puedes clonar un droplet desde un cliente a otro creo; ah! los help son muy buenos y te permiten avanzar. Luego te puedo contar más, ya que este fin de semana me metere un poco mas para customizar mi odoo... Saludos cordiales

te da la posibilidad de elegir la distro.. ubuntu 14.04, 12.04, debian, etc y despues te pregunta con que apps lo quieres de inicio, ej LEMP, wordpress lamp, GIT, etc y lo instala por default con la configuracion que lo pediste y voila, se demora 1 minuto en instalar , luego te envia la pass del root por mail y accesas por ssh para hacer sudo update, upgrade, luego instalas odoo y lo que quieras y despues entras a odoo via browser desde cualquier maquina

Hernan Fritz Aracena Panotto Ltda. Pedro de Valdivia 2563 Telefono 56-2-2789 7214 Celular 94508980

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment