update snippets + odoo conf
This commit is contained in:
1 parent
b89e6dd266
commit
faba192d19
6 files changed
+65
-26
No files matched your search
+1
-1
@@ -1,5 +1,5 @@
|
||||
[options]
|
||||
addons_path = /mnt/enterprise,/mnt/themes,/mnt/oca/partner-contact,/mnt/addons/server_tools,/mnt/addons/project,/mnt/oca/project,/mnt/oca/web,/mnt/oca/timesheet,/mnt/oca/crm,/mnt/oca/knowledge,/mnt/oca/server-auth,/mnt/oca/server-backend,/mnt/oca/server-ux,/mnt/oca/brand,/mnt/oca/hr,/mnt/oca/website,/mnt/oca/reporting-engine,/mnt/oca/server-tools,/mnt/oca/product-attribute,/mnt/oca/sale-workflow,/mnt/oca/dms,/mnt/oca/social,/mnt/oca/bank-statement-import,/mnt/oca/rest-framework,/mnt/oca/contract,/mnt/oca/purchase-workflow,/mnt/oca/stock-logistics-warehouse,/mnt/oca/account-invoicing,/mnt/oca/server-env,/mnt/oca/business-requirement,/mnt/oca/connector,/mnt/oca/edi,/mnt/oca/community-data-files,/mnt/oca/account-financial-reporting,/mnt/oca/iot,/mnt/oca/manufacture,/mnt/oca/account-closing,/mnt/oca/account-financial-tools,/mnt/oca/bank-payment,/mnt/addons/odoo_apps_partner,/mnt/addons/sale_workflow,/mnt/oca/credit-control,/mnt/addons/hr,/mnt/addons/manufacture,/mnt/addons/stock_logistics_workflow,/mnt/addons/swiss_payroll,/mnt/oca/stock-logistics-workflow,/mnt/addons/website,/mnt/addons/product_attribute,/mnt/addons/partner_contact,/mnt/addons/vertical_saas,/mnt/addons/social,/mnt/addons/vertical_job_portal,/mnt/oca/management-system,/mnt/oca/hr-holidays,/mnt/oca/sale-reporting,/mnt/oca/survey,/mnt/oca/account-reconcile
|
||||
addons_path = /mnt/enterprise,/mnt/themes,/mnt/oca/partner-contact,/mnt/addons/server_tools,/mnt/addons/project,/mnt/oca/project,/mnt/oca/web,/mnt/oca/timesheet,/mnt/oca/crm,/mnt/oca/knowledge,/mnt/oca/server-auth,/mnt/oca/server-backend,/mnt/oca/server-ux,/mnt/oca/brand,/mnt/oca/hr,/mnt/oca/website,/mnt/oca/reporting-engine,/mnt/oca/server-tools,/mnt/oca/product-attribute,/mnt/oca/sale-workflow,/mnt/oca/social,/mnt/oca/bank-statement-import,/mnt/oca/rest-framework,/mnt/oca/contract,/mnt/oca/purchase-workflow,/mnt/oca/stock-logistics-warehouse,/mnt/oca/account-invoicing,/mnt/oca/server-env,/mnt/oca/business-requirement,/mnt/oca/connector,/mnt/oca/edi,/mnt/oca/community-data-files,/mnt/oca/account-financial-reporting,/mnt/oca/iot,/mnt/oca/manufacture,/mnt/oca/account-closing,/mnt/oca/account-financial-tools,/mnt/oca/bank-payment,/mnt/addons/odoo_apps_partner,/mnt/addons/sale_workflow,/mnt/oca/credit-control,/mnt/addons/hr,/mnt/addons/manufacture,/mnt/addons/stock_logistics_workflow,/mnt/addons/swiss_payroll,/mnt/oca/stock-logistics-workflow,/mnt/addons/website,/mnt/addons/product_attribute,/mnt/addons/partner_contact,/mnt/addons/vertical_saas,/mnt/addons/social,/mnt/addons/vertical_job_portal,/mnt/oca/management-system,/mnt/oca/hr-holidays,/mnt/oca/sale-reporting,/mnt/oca/account-reconcile
|
||||
admin_passwd = $pbkdf2-sha512$25000$v7dWau29F0LIee/9n/M.pw$uB2sLuvV7I.QlnLCYlR1enNps2D.chZbzavM2g/MAsMXgfkx/AC2X8sTejf4zfe21yOSPOpmdhWTgQSoYqGAPA
|
||||
data_dir = /var/lib/odoo
|
||||
limit_time_real = 600
|
||||
|
||||
@@ -12,7 +12,6 @@ services:
|
||||
ports:
|
||||
- "127.0.0.1:8069:8069"
|
||||
volumes:
|
||||
# - $HOME/.local/share/Odoo/filestore:/var/lib/odoo/filestore
|
||||
- odoo-data:/var/lib/odoo
|
||||
- ./config:/etc/odoo
|
||||
- ./addons:/mnt/addons
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<t t-name="stock.report_reception_report_label.aersolution">
|
||||
<t t-call="web.basic_layout">
|
||||
<div class="page">
|
||||
|
||||
<t t-foreach="docs" t-as="production">
|
||||
<t t-set="label_qty" t-value="int(production.product_qty)"/>
|
||||
<t t-set="company_id" t-value="production.company_id"/>
|
||||
<t t-set="lot_id" t-value="production.lot_producing_id"/>
|
||||
<t t-set="product_id" t-value="production.product_id"/>
|
||||
|
||||
<t t-call="mint_system.stock.report_label.aersolution"/>
|
||||
</t>
|
||||
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
@@ -0,0 +1,27 @@
|
||||
<t t-name="stock.report_label.aersolution">
|
||||
<t t-foreach="range(0, label_qty)" t-as="label_qty">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<img t-if="company_id.logo" t-att-src="image_data_uri(company_id.logo)" style="max-width: 180px;" alt="Logo"/>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<strong><t t-esc="company_id.partner_id.name"/><br/>
|
||||
<t t-esc="company_id.partner_id.country_id.code"/>-<t t-esc="company_id.partner_id.zip"/> <t t-esc="company_id.partner_id.city"/></strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
|
||||
<p t-esc="product_id.display_name"/>
|
||||
|
||||
<p><span style="margin-right: 8px;">LS/SN:</span><t t-esc="lot_id.name if lot_id else picking.name"/></p>
|
||||
|
||||
<p t-if="lot_id.expiration_date"><span style="margin-right: 8px;">EXP:</span><span t-field="lot_id.expiration_date" t-options="{'widget': 'date'}"/></p>
|
||||
|
||||
<t t-set="putaway_rule_id" t-value="product_id.putaway_rule_ids[:1]"/>
|
||||
<p><span style="margin-right: 8px;">LOC:</span><span t-esc="putaway_rule_id.location_out_id.display_name if putaway_rule_id else 'WH/Stock'"/></p>
|
||||
|
||||
<p style="page-break-before:always;"/>
|
||||
</t>
|
||||
</t>
|
||||
@@ -0,0 +1,16 @@
|
||||
<t t-name="stock.report_lot_label.aersolution">
|
||||
<t t-call="web.basic_layout">
|
||||
<div class="page">
|
||||
|
||||
<t t-foreach="docs" t-as="lot">
|
||||
<t t-set="label_qty" t-value="1"/>
|
||||
<t t-set="company_id" t-value="lot.company_id"/>
|
||||
<t t-set="lot_id" t-value="lot"/>
|
||||
<t t-set="product_id" t-value="lot.product_id"/>
|
||||
|
||||
<t t-call="mint_system.stock.report_label.aersolution"/>
|
||||
</t>
|
||||
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
@@ -3,33 +3,14 @@
|
||||
<div class="page">
|
||||
|
||||
<t t-foreach="docs" t-as="picking">
|
||||
<!--<t t-foreach="picking.move_ids.filtered(lambda m: m.quantity_done > 0.0)" t-as="move">-->
|
||||
<t t-foreach="picking.move_line_ids.filtered(lambda m: m.qty_done > 0.0)" t-as="move_line">
|
||||
<t t-foreach="range(0, move_line.move_id.x_label_qty)" t-as="label_qty">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<img t-if="picking.company_id.logo" t-att-src="image_data_uri(picking.company_id.logo)" style="max-width: 180px;" alt="Logo"/>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<strong><t t-esc="picking.company_id.partner_id.name"/><br/>
|
||||
<t t-esc="picking.company_id.partner_id.country_id.code"/>-<t t-esc="picking.company_id.partner_id.zip"/> <t t-esc="picking.company_id.partner_id.city"/></strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
|
||||
<p t-field="move_line.product_id"/>
|
||||
<t t-set="label_qty" t-value="move_line.move_id.x_label_qty"/>
|
||||
<t t-set="company_id" t-value="picking.company_id"/>
|
||||
<t t-set="lot_id" t-value="move_line.lot_id"/>
|
||||
<t t-set="product_id" t-value="move_line.product_id"/>
|
||||
|
||||
<p><span style="margin-right: 8px;">LS/SN:</span><t t-esc="move_line.lot_id.name if move_line.lot_id else picking.name"/></p>
|
||||
|
||||
<p t-if="move_line.lot_id.expiration_date"><span style="margin-right: 8px;">EXP:</span><span t-field="move_line.lot_id.expiration_date" t-options="{'widget': 'date'}"/></p>
|
||||
|
||||
<t t-set="putaway_rule_id" t-value="move_line.product_id.putaway_rule_ids[:1]"/>
|
||||
<p><span style="margin-right: 8px;">LOC:</span><span t-esc="putaway_rule_id.location_out_id.display_name if putaway_rule_id else 'WH/Stock'"/></p>
|
||||
|
||||
<p style="page-break-before:always;"/>
|
||||
</t>
|
||||
<t t-call="mint_system.stock.report_label.aersolution"/>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
|
||||
Reference in new issue
Block a user