Community mailing list archives
Re: How to import data from postgresql to excelby
Open For Small Business Ltd, Graeme Gellatly
Not withstanding that you said postgres, which I really think you meant Odoo, the really simply was is get the sale orders you want in a list and click export. Disable import-compatible -> Pick your fields (you can chain to any customers fields from there), optionally save them for reuse -> Export to Excel.
Direct SQL can sometimes be OK for really complicated things the interface can't handle, but really as a last resort IMO for the simple act of exporting data which the interafce handles quite well already. The example above is a misleading, it is a very basic query where everything is nicely linked and there is no security to worry about, but unless you really understand the data structures and access rules you will soon trip up, either creating insecure queries or just not being able to get the data. Even little things like the date formats or datetime representations need to be attended to, all things the Odoo interface takes care of for you.
Or exporting the customers pricelist value using SQL or the products cost price. The point is some of the fields you see on screen are stored in postgres in the tables you expect, some is stored in tables you don't expect, and may require difficult queries to access, and some of it is not stored at all.
On Thu, Jul 2, 2015 at 1:22 PM, Dhaman Odoo <email@example.com> wrote:
I think the simple way is use PGAdminyou make joining query and run then execute that script with result to file option.On Wed, Jul 1, 2015 at 7:34 PM, John Otto Knoke <firstname.lastname@example.org> wrote:Power Query On Tue, Jun 30, 2015 at 5:14 AM, Sayali Kothawade <email@example.com> wrote: > Hello, > I am trying to import data from Postgresql from sales modules to > excel. > I want data from customers and sales order on a single excel sheet. > Can you please suggest me any solution? > > > > > Thanks & Regards, > Sayali Kothawade. > Ayanworks Technolgy Solutions Pvt. Ltd. > > _______________________________________________ > Mailing-List: https://www.odoo.com/groups/community-59