openerp-7

OpenERP 7 : How can I set a default date in a create form?

给你一囗甜甜゛ 提交于 2020-01-17 04:08:48
问题 I am new to OpenERP and Python and I am trying to set a default date in a create form which has to be 28 days after when the user is using the create form. The last thing I've tried is this : from datetime import datetime from datetime import date from datetime import timedelta from dateutil.relativedelta import relativedelta from openerp.osv import fields, osv class sale_order_dates(osv.osv): _inherit = 'sale.order' _columns = { 'requested_date': fields.date('Requested Date', help="Date

How to refresh a particular div in a page that contains a dashboard?

杀马特。学长 韩版系。学妹 提交于 2020-01-15 07:43:05
问题 I work with OpenEprp 7.0 and i want to refresh a particular div in a page that contains a dashboard. the code of the first part of the dashboard is the following: <t t-if="number === 2"> <table style="margin-left:360px;margin-top:0px;margin-bottom:0px;"> <tr> <td style="text-align:left;font-size:12px;"><b>Jusqu'au mois courant:</b></td> <td> <input type="radio" id="radio_budget_cumulee_jusque_mois_courant" value="courant" name="radio_budget_cumulee" /> </td> </tr> <tr> <td style="text-align

Hide the Form View in OpenErp (formally as Odoo)

喜欢而已 提交于 2020-01-06 16:29:08
问题 How can I hide the Form View Based on User Access I have created one user (student) in school Management System in openerp. The Admin user is the default user in OpenErp. Admin have all the access rights to acees the Tree view and Form View while How can I restrict the the student user to view only tree view. My Question is how can i hide the Form View When the student user is logged into the system.I wanted to display only the the tree view when he or she is logged into the system while

OpenERP: css class not recognized

隐身守侯 提交于 2020-01-05 12:14:52
问题 Please could someone tell me what's wrong with my code. I have developed a module on openerp7, and now i'am trying to use a css class already existing in the base.css file but it gave me the error : Invalid XML for View Architecture! I've then updated my module and the Web module that contains the base.css file. I also checked that the web module is installed.I have as well restarted the server. here's how I've added the class: <field name="production" class="oe_edit_only"/> here's the full

How to color a field in tree view with today as filter

戏子无情 提交于 2020-01-03 04:45:08
问题 I am new to openERP. I am working on changing the color in tree view for those record whose due_date is less then Today. Those record should be in red color. I am not able to get the current date as filter in tree view. xml what I need but not working : <tree colors="blue:Due_date < Today()" string="Invoice"> <field name="Due_date" /> <field name="date_invoice"/> <field name="state"/> </tree> Working code <tree colors="blue:state == 'open'" string="Invoice"> <field name="partner_id" groups=

how to integrate Odoo with MySQL

混江龙づ霸主 提交于 2020-01-02 06:13:29
问题 I am trying to integrate Odoo(openerp-8) with MySQL on ubuntu server, to get the database access instead of postgresql. But I am unable to figure out the correct way to do that. I tried this link, but it didn't help me http://openerp-team.blogspot.de/2009/08/open-erp-server-with-mysql.html Any better ideas on configuring odoo with MySQL? 回答1: In Odoo apps Store One Free module Available name is "External Database Sources" This module allows you to define connections to foreign databases using

How to get two _rec_names in odoo for two many2one fields in single class?

眉间皱痕 提交于 2019-12-30 14:52:11
问题 I have following code I want this two fields asset_catg_id and folio_num . These should be available for many2one two fields. How to write 2 _rec_name for a single class? class asset_asset(osv.osv): _inherit = "asset.asset" #_name = "asset_asset" _rec_name= "folio_num" #_rec_name = "assetmodelid_add" _columns = { 'name': fields.char('Asset Name', size=64), 'company_id1': fields.many2one('res.company', 'Substation', required=True), #'place1': fields.many2one('asset.parentlocation', 'Location')

How to add entry to 'More' menu or top menu to add action on multiple selections?

蹲街弑〆低调 提交于 2019-12-28 16:14:29
问题 Goal I want to create delivery from a selection of order lines, but I can't get the button to appear. Module compose_delivery_order/ ├── delivery_order_button.py ├── delivery_order_button.xml ├── images/ │ └── delivery_order_button.png ├── __init__.py ├── __openerp__.py ├── order_to_invoice_create_delivery_button.py ├── order_to_invoice_create_delivery_button.xml ← I'm working on this ├── sale_order_button.py └── sale_order_confirm_button.xml XML <record> <record id="action_sale_order

No database selection openerp connection

大兔子大兔子 提交于 2019-12-25 16:49:53
问题 I imported a database through psql interface, the database exists but on the OpenERP connection interface, the database imported is not listed. What should I do to get the database imported listed in the connection interface of OpenERP ?? Cheers 回答1: Make sure that the database is owned by the database user configured in the OpenERP configuration file - openerp usually. Another situation when you can see an empty list for database selection is when your openerp-server didn't start for some

How to display RML custom header and footer in all page

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 16:47:34
问题 I add my own custom header and footer in RML report, the problem is when I select all the record and print, first page prints correctly, the problem occurs in second page, header and report data overlapped, so how to set header in all the pages without overlapping <template title="High_Value_Item" author="OpenERP S.A.(sales@openerp.com)" allowSplitting="20"> <pageTemplate id="first"> <frame id="first" x1="30.0" y1="27.0" width="508" height="815"/> <pageGraphics> <image x="1.3cm" y="26.0cm"