This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// like import file | |
require_once('lib/ripcord.php'); | |
// define variables to use in future | |
$url = "http://localhost:8015"; | |
$db = "o14_api"; | |
$username = "admin"; | |
$password = "admin"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[options] | |
# | |
# WARNING: | |
# If you use the Odoo Database utility to change the master password be aware | |
# that the formatting of this file WILL be LOST! A copy of this file named | |
# /etc/odoo/openerp-server.conf.template has been made in case this happens | |
# Note that the copy does not have any first boot changes | |
#----------------------------------------------------------------------------- | |
# Odoo Server Config File - TurnKey Linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
odoo.define('my.component', function (require) { | |
"use strict"; | |
const { Component, useState } = owl; | |
const { xml } = owl.tags; | |
const { patch } = require('web.utils'); | |
// import { patch } from "@web/core/utils/patch"; | |
class MyComponent extends Component { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<odoo> | |
<data> | |
<!-- Inherit Form View to Modify it --> | |
<record id="kod_res_partner_inherit" model="ir.ui.view"> | |
<field name="name">kod.res.partner.form.inherit</field> | |
<field name="model">res.partner</field> | |
<field name="inherit_id" ref="base.view_partner_form"/> | |
<field name="arch" type="xml"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<odoo> | |
<data noupdate="0"> | |
<record id="cron_id" forcecreate='True' model="ir.cron"> | |
<field name="name">Cron Name</field> | |
<field eval="True" name="active"/> | |
<field name="user_id" ref="base.user_root"/> | |
<field name="interval_number">5</field> | |
<field name="interval_type">minutes</field> | |
<field name="numbercall">-1</field> | |
<field name="model_id" ref="model_your_model_name"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var path = require('path'); | |
var cookieParser = require('cookie-parser'); | |
var logger = require('morgan'); | |
var app = express(); | |
app.use(logger('dev')); | |
app.use(express.json()); | |
app.use(express.urlencoded({ extended: false })); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ResConfigSettings(models.TransientModel): | |
_inherit = 'res.config.settings' | |
your_field = fields.Many2one("module.model",string="Your Field", config_parameter='your_module.your_field') | |
def set_values(self): | |
super(ResConfigSettings, self).set_values() | |
ICPSudo = self.env['ir.config_parameter'].sudo() | |
ICPSudo.set_param('your_module.your_field', self.your_field.id) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<odoo> | |
<record model="report.paperformat" id="paperformat_a4"> | |
<field name="name">paperformat.custom.report</field> | |
<field name="default" eval="True"/> | |
<field name="format">A4</field> | |
<field name="page_width">0</field> | |
<field name="page_width">0</field> | |
<field name="orientation">Portrait</field> | |
<field name="margin_top">30</field> | |
<field name="margin_right">5</field> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
'name':'Your module manifest name' | |
'assets': { | |
'web.assets_backend': [ | |
'your_module/static/src/js/your_css.your_css', | |
'your_module/static/src/js/your_js.js', | |
], | |
'web.assets_common': [ | |
'your_module/static/src/js/your_css.your_css', | |
'your_module/static/src/js/your_js.js', |
NewerOlder