openerp

Filter in openerp [closed]

妖精的绣舞 提交于 2019-12-12 04:39:57
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . How to filter many2one field in openerp. _columns = { 'hello': fields.selection([('1','one'),('2','two')],'hello'), 'product_id': fields.many2one('product.product', 'Product', domain=[('type','=',hello)])' ... }

Function field is not working in OpenERP

柔情痞子 提交于 2019-12-12 04:36:15
问题 In purchase.order.line I added new field pln price and changed unit price field to function: 'price_unit': fields.function(_amount_pln, string='Unit Price', required=True, digits_compute= dp.get_precision('Product Price')), 'plnprice': fields.float('PLN Price', digits_compute= dp.get_precision('PLN Price')), Here is function: def _amount_pln(self, cr, uid, ids, prop, arg, context=None): res = {} for line in self.browse(cr, uid, ids, context=context): res[line.id] = line.plnprice * 0.25 return

Gitlab CI & Docker Can't make any operation on postgres container

半城伤御伤魂 提交于 2019-12-12 04:35:49
问题 I try to configure continuous testing/integration with odoo and postgres docker container. But I stuck on a problem, Gitlab CI can't do any operations on docker postgres. My goal is to put a database template into a postgres container after run it and before testing. I tried to use ssh executor after shell executor, but I always stuck on the same problem. Notice that all commands here can be complete on the runner without problems, I test it. I wrote this yml files: variables: # Configure

Inherit view and adding fields

让人想犯罪 __ 提交于 2019-12-12 04:23:10
问题 I want to add my 2 fields boatlenght and fuelcapacity under price list in product form view but they are not showing up. What did i miss. <?xml version="1.0" encoding="utf-8"?> <openerp> <data> <!-- Inherit Form View to Modify it --> <record id="product_product_template_only_form_view" model="ir.ui.view"> <field name="model">product.product</field> <field name="inherit_id" ref="product.product_template_only_form_view"/> <field name="arch" type="xml"> <field name="list_price" position="after">

RML Test of Page Number

*爱你&永不变心* 提交于 2019-12-12 04:17:13
问题 Moin Moin, I'm working on Openerp 7 and there pdf's get created with rml. Problem is: I need Page Numbers, but just starting of the second Page. I tried some rml if clause statements, but Page 1 gets printed all the time and the things that get printet are pretty wierd. <header> <pageTemplate id="second"> <frame id="second" x1="2.2cm" y1="2.5cm" width="16.9cm" height="22.3cm"/> <pageGraphics> <image file="images/isatech_water_header_medium.jpg" x="0.0cm" y="24.4cm" width="19.0cm" height="6

XML RPC non-object on scalarval

一个人想着一个人 提交于 2019-12-12 04:13:59
问题 I have the following script to login to openERP: <?php include('../xmlrpc/lib/xmlrpc.inc'); $dbname = 'km'; $user = 'admin'; $pwd = 'pass'; $url = 'http://localhost:8069'; // it's demo server url $sock = new xmlrpc_client("http://localhost:8069"); $sock_msg = new xmlrpcmsg('login'); $sock_msg->addParam(new xmlrpcval($dbname, "string")); $sock_msg->addParam(new xmlrpcval($user, "string")); $sock_msg->addParam(new xmlrpcval($pwd, "string")); $sock_resp = $sock->send($sock_msg); if ($sock_resp-

How to update field dynamicaly in a many2many relation field and within tree view update field on change of above field

…衆ロ難τιáo~ 提交于 2019-12-12 04:09:37
问题 class ratecard_multiple(models.Model): # pudb.set_trace() _name = 'ratecard.multiple' _rec_name = 'display_name' name = fields.Char(string='Multiple RateCard Product Name ', required=True) code = fields.Char(string='Multiple RateCard Code ', readonly=True) scheduled_for = fields.Integer(string='SCHEDULED FOR', default=1, track_visibility='always', store=True) # scheduled_for = fields.Integer(string='SCHEDULED FOR', compute='_compute_scheduled_for',default=1 ,track_visibility='always',store

why is pip freeze not showing a module although pip install says it's already installed

◇◆丶佛笑我妖孽 提交于 2019-12-12 04:06:49
问题 I'm following these instructions to install odoo on mac. It required that I install all the python modules for the user like so: $ sudo pip install -—user -r requirements.txt (*note about the --user part) However when I run odoo, I get this error: $ ./odoo-bin Traceback (most recent call last): File "./odoo-bin", line 5, in <module> __import__('pkg_resources').declare_namespace('odoo.addons') File "/Library/Python/2.7/site-packages/setuptools-36.5.0-py2.7.egg/pkg_resources/__init__.py", line

Odoo hide breadcrumble

青春壹個敷衍的年華 提交于 2019-12-12 04:06:35
问题 I am trying to hide breadcrumb like in this example: My code: my_model_view.xml <template id="assets_frontend" name="my_model assets" inherit_id="website.assets_frontend" > <xpath expr="." position="inside"> <link rel='stylesheet' href="/my_model/static/src/css/style.css"/> </xpath> </template> </data> style.css .breadcrumb > li { display: none !important; } .breadcrumb > .active { display: none !important; } and openerp .py: "data": [ "my_model_view.xml", ], After that I restarted servise,

How to change the alignment of table in RML file?

吃可爱长大的小学妹 提交于 2019-12-12 03:52:20
问题 I am working with OpenOffice designer to edit OpenERP reports, I set the alignment of table to left or right and I save and send to server. When I print the invoice report, the table is always in the center. So I am going to edit it from RML file but I don't know how to do this Please help me. 回答1: Simply add alignment="RIGHT" attribute to the element you want to align For example: <paraStyle name="addressBox" fontName="Arial" fontSize="12" alignment="RIGHT" /> If you need further details,