On Github Blackrush / soutenance2016
Université du Havre 2015-2016
http://blackrush.github.io/soutenance2016/# -*- coding: utf-8 -*- from openerp import models, fields, exceptions, api, _ class ResPartnerGoogleContact(models.Model): _name = 'res.partner.google_contact' partner_id = fields.Many2one('res.partner', ondelete='cascade') user_id = fields.Many2one('res.users', ondelete='cascade') uri = fields.Char()
select extract(month from m.date) as mon, extract(year from m.date) as year, sum(m.product_uom_qty) as qty from stock_move m inner join stock_picking_type pt on pt.id=m.picking_type_id where m.product_id=%s and m.state='done' and pt.code='outgoing' group by year, mon order by year, mon
<record id="form_partner_contacts" model="ir.ui.view"> <field name="name">form_partner_contacts</field> <field name="inherit_id" ref="base.view_partner_form"/> <field name="model">res.partner</field> <field name="arch" type="xml"> <field name="name" position="after"> <button name="btn_google_contacts_import" string="Import" type="object" class="oe_link" groups="base.group_no_one"/> </field> </field> </record>
~/Workspace/siqual/erp_boilerplate(master ✔) tree . ├── __init__.py ├── __openerp__.py ├── controllers │ └── __init__.py ├── i18n ├── models │ └── __init__.py ├── reports ├── security └── views 6 directories, 4 files
- hosts: odoo tasks: - name: add authorized keys authorized_key: user="{{ansible_user}}" key="{{item}}" state=present - name: install docker apt: name=docker.io state=installed - name: start docker service service: name=docker state=running enabled=yes - name: install docker python library pip: name=docker-py state=present - name: connect to docker registry docker_login: registry: siqual.fr
- name: launch db container docker: name: db image: postgres:9.5 restart_policy: always volumes: - "/var/lib/postgresql/data:/var/lib/postgresql/data"
- name: launch nginx container docker: name: nginx image: nginx:alpine state: started restart_policy: always links: - "web" ports: - "80:80" - "443:443"
SIQUAL me permet d'exercer ma passion entouré d'une équipe extraordinaire et m'a permis d'acquérir des responsabilités là où d'autres entreprises n'auraient pas pu et c'est avec plaisir que je poursuis l'aventure