Closed GoogleCodeExporter closed 8 years ago
Original comment by rva...@gmail.com
on 17 Sep 2008 at 11:35
Yes I agree this is exactly the kind of approach we should be taken. Modularize
the
code a bit better so the core syncing code is written once and used in several
different ways.
I am still a fan of updates happening automatically on save if they are flagged
to
sync with Magento though, so this would happen transparently.
But there may also be the need to sync from Magento to OpenERP (in other words
drive
the updates from Magento, so we should keep that in mind. Maybe support both?
Original comment by nip...@gmail.com
on 18 Sep 2008 at 1:44
Also, if we add a per record upload feature, then we can trigger it by XML/RPC
from
Magento in a single (or so) call. Indeed, every wizard action can be called as
XML/RPC. A good way to see how the OpenERP GTK client communicate to the server
with
XML/RPC and thus automate part of GUI actions in any remote language, is to
start
your GTK client with the following options:
tinyerp-client.py --log=rpc --log-level=debug
Then just fire the appropriate XML/RPC call. So actually, this is only:
* a per record update to refactor
* an extra wizard button to trigger the record update from the GTK client
* an on_update (or alike) callback to implement to trigger the update on save
* an XML/RPC trigger from Magento to the per record synch action with an
appropriate
product id and OpenERP login parameters.
Original comment by rva...@gmail.com
on 18 Sep 2008 at 3:48
Guys, we also need to give an answer to this one:
If we code such an easy OpenERP multi-selection product synch button that can
eventually be used for a signle record, is there a point having that button for
a
single record (eg in the product from view) if we override the product_product
save
function so that it trigger the update anyway after any change?
On the other side, I don't see yet how we can easily have multi product
selection
synch feature (in the OpenERP product list view) without having the button on
every
single product form. So at worse that would only mean a button that is sometimes
useless, not that bad. Anybody has a better idea?
Raphaël Valyi.
Original comment by rva...@gmail.com
on 19 Sep 2008 at 9:35
I don't think it's needed for a single record, but can see a use for selecting
a few
to perform it on. Isn't there an easy way to do this with the action links that
can
appear next to screens?
charles
Original comment by nip...@gmail.com
on 21 Sep 2008 at 9:34
Hi
the lastest version on trunk allow you to update categories and products on
Magento
on 3 ways :
- On the main menu, the wizard will synch all of your categories and products
- On a tree view of the categories and products, the wizard will take only the
selected items.
- On a form view of the categories and products, the wizard will take the
current item.
Now we will see about a automatic update of the items when they are saved..
Original comment by GrouhPamart
on 25 Sep 2008 at 1:12
Before you do any coding for the automatic updates of items when they are saved,
please look at the module I created for the Magento side. I believe the
direction we
should take is to add controllers to this module for all the major pieces
(products,
categories, etc) and add xmlrpc support to those controllers to do the work if
not
supported natively by xmlrpc/web services, or requires more logic than a few
simple
web calls.
thanks,
charles
Original comment by nip...@gmail.com
on 25 Sep 2008 at 1:32
Oh, and I should have mentioned that one approach would be to add our own apis
(extend the existing api) for the missing functionality which might lead to it
being
adopted by magento into the core if it is general enough.
http://www.magentocommerce.com/wiki/doc/webservices-api/custom-api
Original comment by nip...@gmail.com
on 25 Sep 2008 at 1:42
We'll look at this closely for orders treatment.
Since products and categories APIs are native in Magento,
we have made that automatic update.
Original comment by GrouhPamart
on 26 Sep 2008 at 5:40
Original comment by GrouhPamart
on 26 Sep 2008 at 5:41
OK, done in version 0.9.8
Charles, we are now merging your sale order push feature by the way, but I
think this
is just an other topic, let's close that RFE then.
Raphaël Valyi
Original comment by rva...@gmail.com
on 28 Oct 2008 at 10:24
Original comment by rva...@gmail.com
on 28 Oct 2008 at 10:24
Original issue reported on code.google.com by
rva...@gmail.com
on 17 Sep 2008 at 11:04