borderitsolutions / amadaa

Amadaa means plantain in Gã.
MIT License
0 stars 5 forks source link

Line items - better to use data grid? #308

Open lcabrini opened 7 years ago

lcabrini commented 7 years ago

I've been looking at the sales application and I wonder if we would be better off using a jQuery data grid for the line items part. I think it might reduce the UI clutter a bit and allow the sales person to work quicker through a sale.

lcabrini commented 7 years ago

We might still be able to go with what we have, but we need to clean it up a bit. One important part is to figure out how to get rid of the currency drop down on the money field.

Anyways, let us discuss this and come up with a good solution.

lcabrini commented 7 years ago

Actually, looking at Odoo, on the made sales order form, you do not edit the line items. Instead, you open a modal form for each line item. Here is the sales order form in odoo.

salesorder

Notice that the sales line section is just going to be a non-editable list of line items. To add/edit a line item you get the following modal form.

salesline

This is an idea. What do you guys think?

poeticabdul commented 7 years ago

I suspect Odoo has a REST way of doing this. Our current way of implementing this isn't also bad. With some javascript/jquery, we can actually reduce the line items to 1 and with a click on a + button increase the number of line items.

You can see this way of implementaton here www.jurnal.id

lcabrini commented 7 years ago

@poeticabdul that is not a bad idea. I'm not against the way have it now, if it weren't for the fact that each line item takes up two rows. It makes it difficult to look at.

But of course, there are other ways we could achieve that. We could widen the form for one. We also cut out fields that are not needed (see #311 for design work on that).