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
<data> | |
<t t-esc="record.scheduled_date.value and record.scheduled_date.value.split(' ')[0] or False" | |
position="before"> | |
<button name="671" | |
icon="fa-calendar-minus-o" | |
type="action"/> | |
</t> | |
<t t-esc="record.scheduled_date.value and record.scheduled_date.value.split(' ')[0] or 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
# custom_ray_odoo | |
# loop through all selected product(s) | |
for record in records: | |
# set lead time to default 3 days | |
lead_time = 3 | |
found_vendor = False | |
# loop through all the vendor(s) on the purchase tab |
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
network: | |
version: 2 | |
ethernets: | |
enp0s3: | |
addresses: [192.168.1.202/24] | |
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
Bank Balances Clearing: (debit balance if positive, credit balance if negative) | |
Statement Balance - credit BB clearing, debit the outstanding receipts account | |
OR | |
Statement Balance - debit BB clearing, credit the outstanding payments account | |
There will be debits left in the BB clearing, based on uncleared Customer deposits | |
credit BB clearing, debit the outstanding receipts account | |
There will be credits left in the BB clearing, based on uncleared Vendor payments | |
debit BB clearing, credit to outstanding payments |
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
<tree multi_edit="1" create="0"> | |
<field name="company_id" invisible="1"/> | |
<field name="bom_id" readonly="1"/> | |
<field name="product_id" context="{'default_detailed_type': 'product'}"/> | |
<field name="product_tmpl_id" invisible="1"/> | |
<button name="action_see_attachments" type="object" icon="fa-files-o" aria-label="Product Attachments" | |
title="Product Attachments" class="float-end"/> | |
<field name="attachments_count" class="text-start" string=" "/> | |
<field name="product_qty"/> | |
<field name="product_uom_category_id" invisible="1"/> |
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
1) Setup two CC Journals with related accounts - via Add Bank Account | |
- one is for a single card holder | |
- one is for a corporate card with many card holders - modeled as payment methods with the top being "Select a Card" | |
2) Create a custom field x_payment_method_line_id on account.move.line | |
It is a many2one to account.payment.method.line | |
Related: move_id.payment_id.payment_method_line_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
<filter string="This Month" name="this_month" domain="['&', ('date', '>=', context_today().strftime('%Y-%m-01')), | |
('date', '<', (context_today() + relativedelta(months=1)).strftime('%Y-%m-01'))]"/> | |
<filter string="Last Month" name="last_month1" domain="['&', ('date', '>=', (context_today() - relativedelta(months=1)).strftime('%Y-%m-01')), | |
('date', '<', (context_today() - relativedelta(months=0)).strftime('%Y-%m-01'))]"/> | |
<filter string="2 Months Ago" name="last_month2" domain="['&', ('date', '>=', (context_today() - relativedelta(months=2)).strftime('%Y-%m-01')), | |
('date', '<', (context_today() - relativedelta(months=1)).strftime('%Y-%m-01'))]"/> | |
<filter string="3 Months Ago" name="last_month3" domain="['&', ('date', '>=', (context_today() - relativedelta(months=3)).strftime('%Y-%m-01')), |
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
https://www.odoo.com/forum/help-1/odoo-10-runs-via-odoo-bin-but-cannot-get-to-run-as-a-service-is-this-a-systemd-upstart-thing-112460 | |
/etc/systemd/system/odoo.service | |
[Unit] | |
Description=Odoo | |
Documentation=http://www.odoo.com/ | |
[Service] |
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
TURN OFF: | |
update ir_mail_server set active = 'f'; | |
update fetchmail_server set active = 'f'; | |
update ir_cron set active = 'f' where function = 'schedule_backup'; | |
TURN ON: | |
update ir_mail_server set active = 't'; | |
update fetchmail_server set active = 't'; | |
update ir_cron set active = 't' where function = 'schedule_backup'; |
NewerOlder