result['account_id'] = a
taxes = res.taxes_id and res.taxes_id or (a and self.pool.get('account.account').browse(cr, uid, a, context=context).tax_ids or False)
- result.update( {'name':res.partner_ref,'uom_id': uom_id or res.uom_id.id, 'price_unit': res.list_price or res.standard_price,'tax_ids': [x.id for x in taxes]} )
+ result.update({'name':res.partner_ref,'uom_id': uom_id or res.uom_id.id, 'price_unit': res.list_price or res.standard_price,'tax_ids': [x.id for x in taxes]})
if res.description:
result['name'] += '\n'+res.description
inv_line_id.append(line_id)
return inv_line_id
- def cron_create_invoice(self, cr, uid, context=None):
+ def cron_create_invoice(self, cr, ids, uid, context=None):
inv_obj = self.pool.get('account.invoice')
obj_invoice_line = self.pool.get('account.invoice.line')
journal_obj = self.pool.get('account.journal')
<field name="interval" class="oe_inline"/>
<field name="rrule_type" class="oe_inline"/>
</div>
- <p colspan="2" >
+ <p colspan="2" class="oe_grey">
Following Invoice will be generated on <field name="next_date" on_change="onchange_next_date(next_date)" class="oe_inline"/>.
</p>
</group>
<field name="name"/>
<field name="quantity"/>
<field name="uom_id"/>
- <field name="tax_ids"/>
+ <field name="tax_ids" widget="many2many_tags" readonly="0"/>
<field name="price_unit"/>
<field name="price_subtotal"/>
</tree>
</div>
<field name="amount_tax" nolabel="1" widget="monetary" options="{'currency_field': 'currency_id'}"/>
<field name="amount_total" class="oe_subtotal_footer_separator" widget="monetary" options="{'currency_field': 'currency_id'}"/>
- <button name="cron_create_invoice"
- string="(Create Invoice)"
- type="object" help="Compute Invoices"/>
</group>
</xpath>
</field>