odoo-8

Why my pdf report is not taking the CSS styles well in Odoo?

早过忘川 提交于 2019-12-10 10:07:25
问题 I am using Odoo 10 in Ubuntu Server. I am trying to print my quotation report in pdf format using wkhtmltopdf. But the design doesn't look nice. It looks like the CSS is not working I have tried to change some XML file inside mypath/addons but it doesn't work Here's my quotation pdf file: 回答1: 1st Possible Reason If your report doesn't have styles try to add some of these parameters in Settings > Parameters > System parameters : web.base.url : <IP address>:<Port> web.base.url.freeze : True .

How to migrate an Openerp v7 database to Odoo v8?

我与影子孤独终老i 提交于 2019-12-10 09:46:01
问题 I have a dump file of database backup(openerp-7). Now I want to continue my work in Odoo, the database is in openerp-7 format so I am not able to restore it in Odoo. How to convert this database to Odoo version in order to start working on it? 回答1: You must do a data migration. That's not an easy task. You can use some of this migration tools: OpenUpgrade. Or you can use some ETL tool such as Odoo ETL If you only want migrate some table you can export it in a CSV file and import it in Odoo

how to import QOH in odoo 8

試著忘記壹切 提交于 2019-12-09 13:13:34
问题 I want to update my stock in odoo either its by odoo frontend or using backend (postgres query). I have my stock value in csv file. Finally, I want to update quantity on hand in bulk. 回答1: It's finally solved, simply follow the step Step – 1 ; 1-> select product in warehouse module (open in list view). 2-> select the product which you want to update the inventory . 3-> click on more button and export column i-> product name and any other one if you needed . you have file with name of product

Odoo MissingError One of the documents you are trying to access has been deleted, please try again after refreshing

雨燕双飞 提交于 2019-12-08 13:52:37
问题 Odoo Warning, MissingError One of the documents you are trying to access has been deleted, please try again after refreshing. Am accessing this button action_four_weeks_schedule_form which is shown below on . <field name='multiple_ratecard_id' nolabel="1" options="{'reload_on_button': true}"> <!-- widget="many2many"--> <tree string="ALLOCATE SPOTS" editable="bottom" > <button name="action_four_weeks_schedule_form" type="object" string="CREATE RATECARD SCHEDULE" class="oe_highlight" /> The

Odoo : Acces a column from many2one

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 13:14:31
Here is my problem : I'm in model1 : class model1(osv.osv): _name = 'model1' _columns = { 'name': fields.many2one('res.partner', u'Person', domain=[('my_boolean', '=', False)], required=True, select=True), 'type' = fields.selection([('1', 'One'), ('2', 'Two'), u'Select', required=True), } @api.onchange('type') def onchange_type_model1(self) self.name.model3_id = 2 And I want to modify in this onchange the value of the id of model3_id in res.partner: -res.partner in this module: class res_partner(osv.osv): _inherit = 'res.partner' _columns = { 'model1_partner_ids': fields.one2many('model1',

raise TypeError(repr(o) + " is not JSON serializable

左心房为你撑大大i 提交于 2019-12-08 12:50:11
问题 Can help me? i want to domain many2one field where id not show in other transaction @api.multi @api.onchange('batch_id') def _onchange_batch_id(self): if self: tempt=[] for record in self: tempt.extend([record.batch_id]) culling = self.env['estate.nursery.cullinglinebatch'].search([('batch_id', '!=', list(tempt))]) return { 'domain': {'batch_id': [('batch_id','not in',culling),('qty_abnormal','>',0)]} } 回答1: In ODOO8/9 search method always return object not the Id of object. culling = self

How can i generate xls report in odoo

ぐ巨炮叔叔 提交于 2019-12-08 12:15:35
问题 I want to generate my own excel report using Excel report engine in odoo 8. someone please send me a simple excel report sample or any helping URL. I'll be very thankful to you .... 回答1: Here is a simple piece of code. There is really a lot of examples on the internet with good explanations. I suggest you go through the code in detail to see how it works (by the way I have copied the code also from somewhere - I cannot remember where. Also have a look at the examples here:https://github.com

Odoo - Combine two fields heading in one2many

久未见 提交于 2019-12-08 07:54:52
问题 I am working with odoo 10-e. I created custom module and in that module i want to show one2many records like this ---------------- | Long Cell | ---------------- | 1 | 2 | ---------------- right now by default each column have its own heading which is actually string= value. I want to override default behavior. 回答1: First create the xml file which extends the ListView Template like this to add colspan feature in base list view template. colspan.xml <?xml version="1.0" encoding="UTF-8"?>

Pass custom field values from oppertunity to quotation in odoo 10

徘徊边缘 提交于 2019-12-08 07:27:52
问题 I have added a custom field in opportunity and same field in quotation and I want to add value in that custom field in opportunity and pass that values to Quotation in same field. In odoo 8 it was done by overriding makeOrder method but now in odoo 10 I have no idea how to do it. Someone please help me about it. Thanks! 回答1: When you write your field definitions, you can solve it. It will be change on the fly, if you set 'store' property to True, then it will write it to the db, so this will

Odoo - View customization with colspan or may be col

不羁的心 提交于 2019-12-08 04:45:03
问题 I am using odoo 10-e . Earlier i asked a question how can we merge two or multiple header to show one header against multiple fields Combine two fields heading in one2many . So answer was good and it worked but now i want to do some more customization in the one2many tree view in form. I want something like this. I want borders also in rows but for specific columns and also sub heading for only once per column. I tried to add div in odoo view but its not supported. I also tried to add it