~vauxoo/addons-vauxoo/7.0-account_voucher_category-dev-hbto

« back to all changes in this revision

Viewing changes to m321_customization/invoice.py

  • Committer: Jose Morales
  • Date: 2013-05-16 15:44:16 UTC
  • mfrom: (544.1.9 addons-vauxoo)
  • Revision ID: jose@vauxoo.com-20130516154416-eago8zbxslb2scq8
 
[MERGE] Added new features in the user_story module to make easy the user story management, these improvements are:
         [IMP] Added a priority field in the user story to define the priority level for each user story for ease of handling and delivery
         [IMP] Added filter to show user story for priority level
         [IMP] Added automatically project in the task when you create a new task from user story view, this project is the seted in the user story
         [IMP] Added filter to show user story for state, to ease the user story management
         [IMP] Added sum in the planned hours field to control, the hours used for each user story, for we can see the progress in any project easily
         [IMP] Added translations in the user_story module
         [IMP] Added branch to clone field in the project task module
         
       [MERGE] Merge from trunk to apply pep8 and V7 migrate in all modules
       

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    """
38
38
    _inherit = "account.invoice"
39
39
    _columns = {
40
 
        'profit_code': fields.integer("Code from profit", help="Invoice code from profit"),
 
40
        'profit_code': fields.integer("Code from profit",
 
41
            help="Invoice code from profit"),
41
42
    }
42
43
 
43
44
 
44
 
 
45
45
class inherited_invoice_line(osv.Model):
46
46
    _inherit = "account.invoice.line"
47
47
    _columns = {
48
48
        'net_discount': fields.float('Net Discount', required=False,
49
49
        digits_compute=dp.get_precision('Account'),
50
 
        help="""Loaded from data imported from Profit is equal to sale price minus real sold price"""),
51
 
        'discount_code_profit': fields.char('Discount code from profit', size=7)
 
50
        help="""Loaded from data imported from Profit is equal to sale price
 
51
            minus real sold price"""),
 
52
        'discount_code_profit': fields.char('Discount code from profit',
 
53
            size=7)
52
54
    }
53
55
 
54
56
    _defaults = {
55
57
        'net_discount': 0.0
56
58
    }
57