Posts

Showing posts from April, 2021

Open Many2one field in new Tab (Browser )from Tree View [odoo]

Image
 We can open any Many2one Relational fields from Tree view to New Tab in browser, so that the current Tree view load time will not take much time every time. Add Button in Tree view: ------------------------------ <button name ="action_open_product_document" string ="Open Product Form" icon ="fa-external-link" type ="object" attrs ="{'invisible': [('product_id', '=', False)]}" help ="Click to open the Product Form view as Wizard." /> Add Method in .py file ---------------------------- import werkzeug.urls @api.multi def action_open_product_document ( self ): ctx = self .env.context.copy() action = { 'type' : 'ir.actions.act_window_close' } if self .product_id: ctx.update({ 'create' : 0 , 'edit' : 0 , 'delete' : 0 }) view_type = 'form' model = 'product.product' menu_id = self .env.ref( "stock.me...

Backup/Restored Database is not working and issue with Front-end view [odoo-14.0]

Image
Getting this error while login in the Restored Database.  Problem Statement: ----------------------- 2021-04-19 11:45:34,411 24948 WARNING odoo14_RestoreDB_17Feb2021 odoo.addons.base.models.assetsbundle: Error: Undefined variable: "$mk-brand-gradient-start".         on line 17613 of stdin >> radient: linear-gradient(to right bottom, $mk-brand-gradient-start, $mk-bran    ------------------------------------------^ This error occured while compiling the bundle 'web.assets_backend' containing:     - /web/static/lib/bootstrap/scss/_functions.scss     - /web/static/lib/bootstrap/scss/_mixins.scss     - /web/static/src/scss/bs_mixins_overrides.scss     - /web/static/src/scss/utils.scss     - /muk_web_theme/static/src/scss/mixins.scss     - /web/static/src/scss/primary_variables.scss     - /muk_web_theme/static/src/scss/colors.custom.muk_web_theme._assets_primary_variables.scss  ...