odoo-10

How to migrate odoo 8 to odoo 10

折月煮酒 提交于 2019-12-12 01:24:46
问题 i want to migrate odoo 8 to odoo 10 with all settings and data in community edition, can someone please tell me about what steps I should follow or is there any module or other way which it could done automatically??? 回答1: For Database Migration please check https://github.com/OCA/OpenUpgrade For code migration you need to be aware for changelogs of odoo versions & you need to maintain that changes in you customized modules. 回答2: this is a tool under test to migrate code written in odoo7 to

Odoo change base javascript method

守給你的承諾、 提交于 2019-12-12 00:54:46
问题 There is a file in Odoo: addons/mail/static/src/js/chatter.js . It contains a method I would like to change: message_get_suggested_recipients. For this I created an addon with files: chatter.xml <?xml version="1.0" encoding="utf-8"?> <odoo> <data> <!--template id="assets_backend" name="addon1" inherit_id="web.assets_backend"--> <xpath expr="." position="inside"> <script type="text/javascript" src="/addon1/static/src/js/chatter.js"></script> </xpath> </template> </data> </odoo> and chatter.js

Dynamic URL in odoo form

*爱你&永不变心* 提交于 2019-12-11 17:36:12
问题 How can I create a dynamic link in the odoo formview for example Static text=http://maps.chef-debiscuit.com/map.php?sheetID= dynamic text = record id (solution) http://maps.chef-debiscuit.com/map.php?sheetID=32 For the moment i only have <a href="http://maps.chef-debiscuit.com/map.php?sheetID=" target="_blank">View on Map</a> 回答1: 0) Create new computed field x_url 1) copy ID -> Field x_copy_id 2) Convert x_copy_id to string 3) Combine static text with IDCOPY for record in self: IDCOPY = str

Filter values ​from many2one fields

痴心易碎 提交于 2019-12-11 17:23:16
问题 Please help, I want to filter values ​​from fields that are in many2one. I have tried various ways, but still have difficulties in understanding. so this my code; zona_parkir=fields.Char('Zona Parkir', related='location_id.zone_id.name', readonly='True') location_id=fields.Many2one('parking_location', string='Lokasi', required='True') class ParkingLocation(models.Model): #parking_location _name='parking_location' _rec_name='name' name=fields.Char('Lokasi') zone_id=fields.Many2one('parking

(odoo10) how to add product attributes in pdf invoice

我只是一个虾纸丫 提交于 2019-12-11 15:49:08
问题 pls advice how to add product attributes into pdf invoice. Currently we printing product SCU: <tr t-foreach="o.invoice_line_ids" t-as="l"> <td><span t-field="l.product_id.default_code"/></td> <td class="hidden"><span t-field="l.origin"/></td> <td class="text-right"> and it looks a bit ugly on invoice. pls advice how to add product template like l.product_id.name + attributes, like: also, could you pls advice how to put attributes below product name? here is my code now: <tbody class="invoice

how to overwrite a one to many records in odoo through default API

只谈情不闲聊 提交于 2019-12-11 15:18:41
问题 how to overwrite a one to many records in odoo through odoo API ? This is my create json, what change I want to make in this json to overwrite(Replace) the existing? lead_product_ids ., now it is appending the records. Now i am getting multiple when update the records in this code instead of 0,0 what is the value, Please help. { "jsonrpc": "2.0", "params": { "model": "crm.lead", "method": "create", "args": [ { "type": "opportunity", "name": "Fgtrdhjkkmmmmmmmm1290", "pro_info": "Fggggggg

Return form dynamically

≡放荡痞女 提交于 2019-12-11 07:30:16
问题 Hi any help please how can I return values of One2many in a new form dynamically. I have three class I define a function where I return the values of many2many(rubrique_ids) and One2many(critere_ids) exist recently in a new form how can I return(generate) form dynamically from values of One2many fields file xml <button name="evaluer" string="Evaluer" type="object"/> first class class A(models.Model): _name='risques.risque' _rec_name='nom_risque' nom_risque = fields.Char(required=True, string=

Odoo 10 Qweb Report, define filename for PDF file

只谈情不闲聊 提交于 2019-12-11 07:26:26
问题 I have the following custom report: <?xml version="1.0"?> <odoo> <report id = "report_custom_sale_order" name = "custom_saleorder_v2.custom_report_saleorder" string = "Custom Quotation / Order" model = "sale.order" report_type = "qweb-pdf" report_name = "((object.number or 'SaleOrder').replace('/','')+'.pdf')" attachment_use = "False" /> </odoo> I would like the PDF to be downloaded as SO003.pdf for sales order with reference/sequential SO003 , and as SaleOrder.pdf for sales order in draft

How to add condition for particular class to show field drop -down except partner_id from res.partner form

你说的曾经没有我的故事 提交于 2019-12-11 06:59:04
问题 I want to access res.partner form in my module. But i want that instead of customer(partner_id) it 'pet_name' in drop-down for only particular class. I applied a function and it's work. But, it work for complete res.partner. But i don't want this. So, any one can provide solution or condition for this problem? My Code is Here: class customer_information(models.Model): _inherit = "res.partner" @api.multi def name_get(self): result = [] for record in self: name = '[' if record.pet_name: name +=

Creating security groups for a custom module in odoo 10

三世轮回 提交于 2019-12-11 06:38:04
问题 I have created a custom module on odoo 10. Now I wanted to create security groups with users where each group have a particular menu of my custom module. I've already asked this question and I followed the answers that I got but I did not get the results (I definitely messed up at some point but I can't see where, this is my first time working with odoo) so I ask again the question. Here's what I did: I created a file security.xml in my security folder with contain the following <?xml version