How can I highlight the purchase orders in same state differently for users to indicate the approval action? - openerp-7

In the workflow, there are multiple users to approve the purchase quotations, which is in the same draft state. Color attribute can be used to highlight, based on states, but since this is in the same state, how can I trigger the user attention to approve new quotations.
For example, user1 creates the quotation, user2 receives it (highlighted)and approved (color changing to grey), user3 receive it (highlighted) and approved (grey). In all these, state is same draft state.

Add a functional field, which evaluates based on User, use this field in Tree View for and set Color attributes based on value of it...

Related

define custom WHMCS invoice status

I need to create a custom invoice status for "Disputed" payments.
I found an article that said to just modify the status column in the DB table 'tblinvoices' with the desired status, but doing this doesn't register that as a status in the sense that the invoice PDF would show "DISPUTED" instead of this and the admin view of the invoice looks like this (note the upper right-hand corner where it would normally say the status like PAID, UNPAID, DRAFT, etc. is blank) and the client view of the invoice looks like this (note the upper right-hand corner where it would normally say the status like PAID, UNPAID, DRAFT, etc. is blank) and lastly the invoice list (overall, not on the client page) shows the status as unrecognised as you can see here
Things are not displayed properly cuz of lack of language translates. You should add proper translations for newly created status in language files for user and administrator in your WHMCS installation. https://developers.whmcs.com/languages/overrides/

Archer Assign User dynamically

RSA Archer Is there a way (custom code?) to assign a user to a user/group field dynamically?
Like:
2 Groups
apple - is assigned to usera
orange - is assigned to usero
sendnote - user/group field
if I choose apple - assign usera to sendnote
if I choose orange - assign usero to sendnote
User/group list can't be calculated, but record permission field can be. The logic you described can be implemented if you use Record Permission field and make it Automatic type. This will allow you to add calculation rules and populate it as required. Side affect of this approach is that calculated fields can't accept user input.
If you want to accept user input and automate behavior of the given field at the same time, then you have to write a Custom Object. Code for Custom Object will vary a lot based on the behavior you want, so it is probably a topic for another question.
Good luck!

Can users have their own product edit permissions in OpenCart?

I am completely new to OpenCart. I have created two users - user1 and user2 and both have the product add/edit permission. user1 add a product. But both user1 and user2 can edit the same product. What I am looking for is only user1 and superadmin can edit the product.
Likely if user2 adds another product then only superadmin and user2 can edit that product. Is it possible in OpenCart? If the situation is not possible in OpenCart, can anyone suggest an alternative to do the same?
Unfortunately, there is no such a thing in OC!
You have two options to accomplish that:
Find a plugin here that makes that (if any)
Code it manually
Step 1: you must keep track of the user who created the product, so you will need to add a new column to the <DB_PREFIX>_product table and save the id of the user who created the product in it, this is a simple step you will just need to modify the model function that saves the product details
Step 2: modify the get product model function and make it returns the id of the creator along with other data
Step 3: modify the edit product page controller index function in such a way that if the logged in user id does not equal the creator of the product, then display some error message

Handling unique INSERTs(strings) in SQL that are used in the system like types

I have a table which are the activities that the technicians do to the machines. Columns are:
1. ID
2. NAME_ACT
What if the user writes and saves the activity Change of oil RT54, and the next month he forgot that the activity is already in the system and start doing it again, but this time he writes Change of oil RT54 2 spaces after change.
How should i handle this?
This is the "event form" that uses these activities
The user clicks the checkedlistbox and chooses the activity he did in the date he picked.
This is the form that allows the user add new activities
The user just writes the name of the activity and saves.
The id of the activity is a field in the table that increments as the user add new activities.
What can I do?

MS Access 2007 - Select multiple records and assign a value into a field

I am using a Multiple Items Form to list CASES (records) where there is no TECHNICIAN assigned (Maybe I should use a Datasheet to list the records?).
I would like the user to select a TECHNICIAN from a dropdown field that gets its values from an Employee Table (I can do this). Then I would like the user to select multiple CASES (records) in order to assign that one TECHNICIAN to the Technician field in all of the selected CASES.
Basically, I'm trying to keep the user from having to assign a technician from within each and every incoming case request. I want them to "batch" assign a tech to multiple cases.
Can someone point me in the right direction?
Ok so I did some more research. This may not be the best answer but it works for now.
I created a Multiple Item Form.
I added an unbound dropbox that lists Employees from the table
I added a button on the detail section (for each record) with the follow line of code:
Me.Technician = Me.Choose_Technician
Now the user can pick a technician from the dropdown and then click the button to assign that technician to the record/casefile.
This is a simple solution if you only have a couple of records/casefiles to assign. If the amount of incoming casefiles increases there will have to be a way to select multiple records using the shift key. I'll keep researching this.