Community mailing list archives

community@mail.odoo.com

Re: heads up class stock move

by
Vauxoo S.A. de C.V., Humberto
- 11/13/2014 11:18:43
That is something that you have to write in an action method and you have to call it when changing states.


    def action_change_state(self, cr, uid, ids, context=None):
        """
        @return True
        """
        context = context or {}
        ids = isinstance(ids, (int, long)) and [ids] or ids
        self.write(
                cr, uid, ods, {'delivery_date_order_warehouse': fields.date.today(),
                                    'state':STATE}, context=context)
        return True


Quien suscribe,

Hbto


On Thu, Nov 13, 2014 at 8:42 AM, Marco Neumann <odoo@webformant.nl> wrote:
Hi All,

Add a field 'delivery_date' in stock.picking.out.

class stock_picking_out(osv.osv):
     _inherit = 'stock.picking.out'
     _columns = {
     'delivery_date_order_warehouse':fields.date('Leverdatum'),
     }

I want to change the value into current date during action  'class 
stock_move(osv.osv):'

Anyone can give me some directions howto aproach this?

Greetings

Marco Neumann
m.neumann@webformant.nl






_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe