Generate Model Template plugin

141 views
Skip to first unread message

Nicolas Micoud

unread,
Jul 3, 2023, 8:00:51 AM7/3/23
to iDempiere
Hi,

I was fed up with executing GenerateModel from Eclipse each time i made some changes in table (and choose parameters there).
So I've added a new process/form that allow to call Model Class/Interface Generator from webUI (can be from a table or from the menu).
There are templates so you can generate classes for a particular table or for several ones.

Here's the wiki page: https://wiki.idempiere.org/en/Plugin:_ModelGeneratorTemplates

And then I see that there was already a plugin with this same purpose :-/ (https://wiki.idempiere.org/en/Plugin:_Model_Generator). I haven't tested it, but just hope I didn't reinvent the wheel.

Regards,

Nicolas

Heng Sin Low

unread,
Jul 3, 2023, 8:22:41 AM7/3/23
to idem...@googlegroups.com
Yes, it does the same thing. We have been thinking of getting that into core, perhaps you can create a PR for it ...

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/ae570b1b-44c6-4299-adbf-fbdae09ff751n%40googlegroups.com.

Nicolas Micoud

unread,
Jul 3, 2023, 10:27:24 AM7/3/23
to iDempiere
Sure, but before, can you check if table/columns/process/form names are ok?
See 2Pack:

Nicolas Micoud

unread,
Jul 3, 2023, 10:32:13 AM7/3/23
to iDempiere
nb: prefixes will be changed from TGI to AD

Yuli Budiono

unread,
Jul 6, 2023, 5:14:24 AM7/6/23
to idem...@googlegroups.com
dear ; all

need your help..
i want to change the UOM, but cant, 
error message :Error: UOM can't be changed if the product has movements or costs

how to change this UOM, please inform the step.. 
thank you


--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/ae570b1b-44c6-4299-adbf-fbdae09ff751n%40googlegroups.com.


--
Best Regards,
YULI 
salam KOMPAK
PT Sinarmonas Industries
Jl. Rukan Artha Gading Niaga Blok D-6
Boulevard Kelapa Gading - Jakarta Utara - Indonesia
Ph. : 62-21-45850660, Fax. : 62-21-45850661
web : http://sinarmonas.co.id/ 

yuanaw

unread,
Jul 6, 2023, 6:01:07 AM7/6/23
to iDempiere
Hi

This email Subject to Case "Generate Model Template plugin"

Can you create your case to another Subject?
For easier Administrations on this iDempiere Group Forum

Thanks

Yuli Budiono

unread,
Jul 6, 2023, 6:07:19 AM7/6/23
to idem...@googlegroups.com

Nicolas Micoud

unread,
Jul 7, 2023, 3:46:41 AM7/7/23
to iDempiere
Another use case that can be covered by this PR would be having a process on Reference window (and executable when is a list).
The process will generate all X classes where the reference is used.

wdyt?

Galih Pribadi

unread,
Jul 17, 2023, 4:57:40 AM7/17/23
to idem...@googlegroups.com
I think the solution is only Update via Query Database, and make sure correct value (wirh new UOM) in another table linked that Product :
- Uom Conversion
- Cost
- Transaction
- Located At

If the Old Base Qty = New Base Qty, you must not to update the tables. 
Example :
Old UOM = PCS
New UOM = KG
And the base qty --> 1 PCS = 1 KG

But, if the Old Base Qty != New Base Qty, you must be carefully to update the tables. 
Example :
Old UOM = PCS
New UOM = KG
And the base qty --> 1 PCS = 3 KG


Thanks

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages