This file contains hidden or 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
#!/bin/bash | |
# or run the script as root. | |
sudo -s | |
mount -o remount,rw / && mount -o remount,rw /root_bypass_ramdisks/ \ | |
&& mount --bind /root_bypass_ramdisks/etc /etc \ | |
&& mount --bind /root_bypass_ramdisks/var /var | |
# Installs. | |
apt-get update && apt-get install -y cups nginx |
This file contains hidden or 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
if contract.paid_hourly: | |
result = contract.wage * worked_days.ATTN.number_of_hours | |
else: | |
result = contract.wage |
This file contains hidden or 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('website_animate.o_animate_frontend', function (require) { | |
'use strict'; | |
var s_animation = require('web_editor.snippets.animation'); | |
var base = require('web_editor.base'); | |
var WebsiteAnimate = { | |
win : {}, | |
items : {}, |
This file contains hidden or 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
-- note that you should find and replace the 'new color' (#505fb5) prior to running. | |
-- Colors | |
UPDATE mail_template set body_html = | |
replace(replace(body_html, '#875A7B', '#505fb5'), 'rgb(135,90,123)', '#505fb5') | |
; | |
-- Footers |
This file contains hidden or 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
partners = env['res.partner'].search([]) | |
for p in partners: | |
if not p.image: | |
env.cr.execute("SELECT image FROM res_partner WHERE id = " + str(p.id) + ";") | |
d = env.cr.fetchall() | |
p.image = str(d[0][0]) | |
env.cr.commit() | |
# verify data is migrated then |
This file contains hidden or 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 | |
/** | |
* Class Cell | |
* Converts string into col/row representation. | |
*/ | |
class Cell { | |
public $col = 0; | |
public $row = 0; |
This file contains hidden or 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 | |
/** | |
* Class Cell | |
* Converts string into col/row representation. | |
*/ | |
class Cell { | |
public $col = 0; | |
public $row = 0; |